fix: caret not showing in Safari for empty wysiwyg

This commit is contained in:
dwelle 2024-12-29 20:47:02 +01:00
parent 42faafe138
commit 55be6de5ec

View File

@ -289,6 +289,8 @@ export const textWysiwyg = ({
editable.dataset.type = "wysiwyg";
// prevent line wrapping on Safari
editable.wrap = "off";
// set   placeholder fix for Safari not showing caret for empty textarea
editable.placeholder = "\u00A0";
editable.classList.add("excalidraw-wysiwyg");
let whiteSpace = "pre";