mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-17 06:21:16 +02:00
fix: caret not showing in Safari for empty wysiwyg
This commit is contained in:
@@ -289,6 +289,8 @@ export const textWysiwyg = ({
|
|||||||
editable.dataset.type = "wysiwyg";
|
editable.dataset.type = "wysiwyg";
|
||||||
// prevent line wrapping on Safari
|
// prevent line wrapping on Safari
|
||||||
editable.wrap = "off";
|
editable.wrap = "off";
|
||||||
|
// set placeholder fix for Safari not showing caret for empty textarea
|
||||||
|
editable.placeholder = "\u00A0";
|
||||||
editable.classList.add("excalidraw-wysiwyg");
|
editable.classList.add("excalidraw-wysiwyg");
|
||||||
|
|
||||||
let whiteSpace = "pre";
|
let whiteSpace = "pre";
|
||||||
|
Reference in New Issue
Block a user