diff --git a/src/element/textWysiwyg.tsx b/src/element/textWysiwyg.tsx index b8f2661c0..44812cad1 100644 --- a/src/element/textWysiwyg.tsx +++ b/src/element/textWysiwyg.tsx @@ -17,6 +17,9 @@ export function textWysiwyg({ font, onSubmit }: TextWysiwygParams) { + // Using contenteditable here as it has dynamic width. + // But this solution has an issue — it allows to paste + // multiline text, which is not currently supported const editable = document.createElement("div"); editable.contentEditable = "plaintext-only"; editable.tabIndex = 0;