mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Allow copy pasting inside of wysiwyg element (#651)
We did some hackery to prevent copy pasting when we didn't support multilines. But we do now so we can remove it. Interestingly, newlines are actually <br /> elements. So we need to tweak the isInputLike logic a bit
This commit is contained in:
parent
f261d6f2fc
commit
70db792549
2 changed files with 1 additions and 9 deletions
|
@ -31,6 +31,7 @@ export function isInputLike(
|
|||
| HTMLDivElement {
|
||||
return (
|
||||
(target instanceof HTMLElement && target.dataset.type === "wysiwyg") ||
|
||||
target instanceof HTMLBRElement || // newline in wysiwyg
|
||||
target instanceof HTMLInputElement ||
|
||||
target instanceof HTMLTextAreaElement ||
|
||||
target instanceof HTMLSelectElement
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue