From 4d0836c6700495833591f688874c686f8e453747 Mon Sep 17 00:00:00 2001 From: Neil Jenkins Date: Thu, 18 Jul 2024 13:05:47 +1000 Subject: [PATCH] Add the html to the willPaste event details The fragment is still the important thing, but this lets the willPaste handler look at the original HTML as part of its processing too. --- source/Editor.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/source/Editor.ts b/source/Editor.ts index 425b39b..552bac1 100644 --- a/source/Editor.ts +++ b/source/Editor.ts @@ -1061,6 +1061,7 @@ class Squire { const event = new CustomEvent('willPaste', { cancelable: true, detail: { + html, fragment: frag, }, });