diff --git a/source/Editor.ts b/source/Editor.ts index 67a1fae..6be5ec4 100644 --- a/source/Editor.ts +++ b/source/Editor.ts @@ -1075,6 +1075,7 @@ class Squire { let doInsert = true; if (isPaste) { const event = new CustomEvent('willPaste', { + cancelable: true, detail: { fragment: frag, }, @@ -1205,6 +1206,7 @@ class Squire { let doInsert = true; if (isPaste) { const event = new CustomEvent('willPaste', { + cancelable: true, detail: { text: plainText, },