Added comment about pasting multiline text

This commit is contained in:
hazam 2020-01-09 02:01:55 +05:00
parent b5366fe255
commit e1907cf666

View file

@ -17,6 +17,9 @@ export function textWysiwyg({
font, font,
onSubmit onSubmit
}: TextWysiwygParams) { }: 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"); const editable = document.createElement("div");
editable.contentEditable = "plaintext-only"; editable.contentEditable = "plaintext-only";
editable.tabIndex = 0; editable.tabIndex = 0;