mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Added comment about pasting multiline text
This commit is contained in:
parent
b5366fe255
commit
e1907cf666
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue