mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Contenteditable wysiwyg (#274)
* Contenteditable wysiwyg * Added comment about pasting multiline text
This commit is contained in:
parent
556843d9a2
commit
e38f65dea7
2 changed files with 32 additions and 18 deletions
|
@ -18,6 +18,7 @@ export function isInputLike(
|
|||
target: Element | EventTarget | null
|
||||
): target is HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement {
|
||||
return (
|
||||
(target instanceof HTMLElement && target.dataset.type === "wysiwyg") ||
|
||||
target instanceof HTMLInputElement ||
|
||||
target instanceof HTMLTextAreaElement ||
|
||||
target instanceof HTMLSelectElement
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue