From a523f747071c05e4659c2b2ce4fce9ae936b8924 Mon Sep 17 00:00:00 2001 From: Karl Kemister-Sheppard Date: Mon, 16 Nov 2026 15:56:26 +1000 Subject: [PATCH 1/2] TINYDOC-3583: Integrations moving focus between inline editors could revert focus back to the previous editor. --- modules/ROOT/pages/8.11.0-release-notes.adoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/ROOT/pages/8.11.0-release-notes.adoc b/modules/ROOT/pages/8.11.0-release-notes.adoc index 68c3245e33..ca50599641 100644 --- a/modules/ROOT/pages/8.11.0-release-notes.adoc +++ b/modules/ROOT/pages/8.11.0-release-notes.adoc @@ -160,6 +160,13 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a // CCFR here. +=== Integrations moving focus between inline editors could revert focus back to the previous editor +// #TINYMCE-14953 + +Previously, on a page with more than one inline editor, an integration that replaced the content of one editor and then moved focus to another could find focus back in the first editor. For example, calling xref:apis/tinymce.editor.adoc#setContent[`+editor.setContent()+`] on the focused editor and then xref:apis/tinymce.editor.adoc#focus[`+editor.focus()+`] on a second editor in the same script could leave the first editor focused. Every inline editor on a page receives the selection change events that the browser fires for the whole page, and an inline editor responded to these events even when it did not have focus. As a result, the first editor could take focus back from the editor the integration had just focused, and the user could end up typing in the wrong editor. + +In {productname} {release-version}, an inline editor ignores page selection changes while it does not have focus. When an integration moves focus between inline editors, focus stays on the editor that was focused last. Editors in iframe mode were not affected, because each iframe editor receives selection changes only from its own document. + [[security-fixes]] == Security fixes From ef4061fb6b8e8ee987d7798f84e62008fa408f3d Mon Sep 17 00:00:00 2001 From: Karl Kemister-Sheppard Date: Fri, 20 Nov 2026 15:17:41 +1000 Subject: [PATCH 2/2] Update modules/ROOT/pages/8.11.0-release-notes.adoc Co-authored-by: Andrew Herron --- modules/ROOT/pages/8.11.0-release-notes.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/pages/8.11.0-release-notes.adoc b/modules/ROOT/pages/8.11.0-release-notes.adoc index ca50599641..b392166a10 100644 --- a/modules/ROOT/pages/8.11.0-release-notes.adoc +++ b/modules/ROOT/pages/8.11.0-release-notes.adoc @@ -163,7 +163,7 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a === Integrations moving focus between inline editors could revert focus back to the previous editor // #TINYMCE-14953 -Previously, on a page with more than one inline editor, an integration that replaced the content of one editor and then moved focus to another could find focus back in the first editor. For example, calling xref:apis/tinymce.editor.adoc#setContent[`+editor.setContent()+`] on the focused editor and then xref:apis/tinymce.editor.adoc#focus[`+editor.focus()+`] on a second editor in the same script could leave the first editor focused. Every inline editor on a page receives the selection change events that the browser fires for the whole page, and an inline editor responded to these events even when it did not have focus. As a result, the first editor could take focus back from the editor the integration had just focused, and the user could end up typing in the wrong editor. +Previously, on a page with more than one inline editor, an integration that replaced the content of one editor and then moved focus to another could find focus back in the first editor. For example, calling xref:apis/tinymce.editor.adoc#setContent[`+editor.setContent()+`] on the focused editor and then xref:apis/tinymce.editor.adoc#focus[`+editor.focus()+`] on a second editor in the same script could leave the first editor focused. As a result the user could end up typing in the wrong editor. In {productname} {release-version}, an inline editor ignores page selection changes while it does not have focus. When an integration moves focus between inline editors, focus stays on the editor that was focused last. Editors in iframe mode were not affected, because each iframe editor receives selection changes only from its own document.