From 00013166fc219b2f7392f7e305ae1a4eff856b44 Mon Sep 17 00:00:00 2001 From: Karl Kemister-Sheppard Date: Thu, 9 Apr 2026 13:55:51 +1000 Subject: [PATCH 1/2] Docs: TINY-12793 - Deleting a selection in an `li` didn't trigger `beforeinput` --- modules/ROOT/pages/8.4.0-release-notes.adoc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/ROOT/pages/8.4.0-release-notes.adoc b/modules/ROOT/pages/8.4.0-release-notes.adoc index ac923f51dc..c094b97f33 100644 --- a/modules/ROOT/pages/8.4.0-release-notes.adoc +++ b/modules/ROOT/pages/8.4.0-release-notes.adoc @@ -356,7 +356,12 @@ In {productname} {release-version}, an issue was identified where certain deleti {productname} {release-version} addresses this by updating the key handler registration to occur during the `init` phase, and additional checks now ensure that previously prevented events are respected. +=== Deleting a selection in an `li` didn't trigger `beforeinput`. +// #TINY-12793 +Previously, deleting a selection inside a list item or pressing Backspace at the start of a list item did not fire the native `beforeinput` event. The editor's list key handler prevented the `keydown` event before performing the deletion, which also suppressed the `beforeinput` event. This affected integrations and plugins that relied on `beforeinput` to intercept or customize deletion behavior in lists. + +In {productname} {release-version}, the editor now dispatches a synthetic `beforeinput` event before performing delete operations inside list items. Handlers can call `preventDefault()` on this event to intercept the deletion as expected. [[security-fixes]] == Security fixes From 4e83b0c603d7d2bcf7a7f6e74b0742baab08f805 Mon Sep 17 00:00:00 2001 From: Karl Kemister-Sheppard Date: Thu, 9 Apr 2026 22:17:08 +1000 Subject: [PATCH 2/2] Update modules/ROOT/pages/8.4.0-release-notes.adoc Co-authored-by: Millie --- modules/ROOT/pages/8.4.0-release-notes.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/pages/8.4.0-release-notes.adoc b/modules/ROOT/pages/8.4.0-release-notes.adoc index c094b97f33..a7f4318f57 100644 --- a/modules/ROOT/pages/8.4.0-release-notes.adoc +++ b/modules/ROOT/pages/8.4.0-release-notes.adoc @@ -356,7 +356,7 @@ In {productname} {release-version}, an issue was identified where certain deleti {productname} {release-version} addresses this by updating the key handler registration to occur during the `init` phase, and additional checks now ensure that previously prevented events are respected. -=== Deleting a selection in an `li` didn't trigger `beforeinput`. +=== Deleting a selection in a `li` didn't trigger `beforeinput`. // #TINY-12793 Previously, deleting a selection inside a list item or pressing Backspace at the start of a list item did not fire the native `beforeinput` event. The editor's list key handler prevented the `keydown` event before performing the deletion, which also suppressed the `beforeinput` event. This affected integrations and plugins that relied on `beforeinput` to intercept or customize deletion behavior in lists.