From c989e2248cba9db2ee99241f2ccfda1972f1cf59 Mon Sep 17 00:00:00 2001 From: Karl Kemister-Sheppard Date: Mon, 16 Nov 2026 15:29:56 +1000 Subject: [PATCH 1/2] TINYDOC-3583: Focusing the editor with `scrollToSelection: false` still scrolled on Safari 26 and later. --- 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..15f3f6150c 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. +=== Focusing the editor with `+scrollToSelection: false+` still scrolled on Safari 26 and later +// #TINYMCE-15097 + +Previously, calling xref:apis/tinymce.editor.adoc#focus[`+editor.focus({ scrollToSelection: false })+`] in Safari 26 and later still scrolled the selection into view, moving the editor content or, for inline editors, the page. Integrations that used this option to return focus to the editor without moving the view saw the document jump away from the part the user was reading. The cause is a change in Safari 26: the browser now scrolls to the selection whenever an editable element receives focus, and ignores the `+preventScroll+` focus option that {productname} passes. The WebKit team appears to have made this change deliberately. For details, see link:https://bugs.webkit.org/show_bug.cgi?id=292062[WebKit bug 292062]. + +In {productname} {release-version}, when the editor is focused with `+scrollToSelection: false+`, {productname} records the scroll position before the editor takes focus and restores it immediately afterward. The view stays where it was in Safari 26 and later. The fix applies in all browsers and has no effect where the browser already respects `+preventScroll+`. Calling `+editor.focus()+` without an argument, or with `+scrollToSelection: true+`, still scrolls the selection into view as before. + [[security-fixes]] == Security fixes From 79766e9d9f49bba2fdff13fd0f18588ce19e4083 Mon Sep 17 00:00:00 2001 From: Karl Kemister-Sheppard Date: Fri, 20 Nov 2026 10:29:21 +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 15f3f6150c..8d53d967de 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 === Focusing the editor with `+scrollToSelection: false+` still scrolled on Safari 26 and later // #TINYMCE-15097 -Previously, calling xref:apis/tinymce.editor.adoc#focus[`+editor.focus({ scrollToSelection: false })+`] in Safari 26 and later still scrolled the selection into view, moving the editor content or, for inline editors, the page. Integrations that used this option to return focus to the editor without moving the view saw the document jump away from the part the user was reading. The cause is a change in Safari 26: the browser now scrolls to the selection whenever an editable element receives focus, and ignores the `+preventScroll+` focus option that {productname} passes. The WebKit team appears to have made this change deliberately. For details, see link:https://bugs.webkit.org/show_bug.cgi?id=292062[WebKit bug 292062]. +Previously, calling xref:apis/tinymce.editor.adoc#focus[`+editor.focus({ scrollToSelection: false })+`] in Safari 26 and later still scrolled the selection into view, moving the editor content or, for inline editors, the page. Integrations that used this option to return focus to the editor without moving the view saw the document jump away from the part the user was reading. The cause is a change in Safari 26: the browser now scrolls to the selection whenever an editable element receives focus, and ignores the `+preventScroll+` focus option that {productname} passes. In {productname} {release-version}, when the editor is focused with `+scrollToSelection: false+`, {productname} records the scroll position before the editor takes focus and restores it immediately afterward. The view stays where it was in Safari 26 and later. The fix applies in all browsers and has no effect where the browser already respects `+preventScroll+`. Calling `+editor.focus()+` without an argument, or with `+scrollToSelection: true+`, still scrolls the selection into view as before.