0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-21 23:03:11 -05:00

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.
This commit is contained in:
Neil Jenkins 2024-07-18 13:05:47 +10:00
parent e00a62e6fa
commit 4d0836c670

View file

@ -1061,6 +1061,7 @@ class Squire {
const event = new CustomEvent('willPaste', {
cancelable: true,
detail: {
html,
fragment: frag,
},
});