diff --git a/modules/ROOT/examples/live-demos/tinymceai-multi-editor-groups/example.js b/modules/ROOT/examples/live-demos/tinymceai-multi-editor-groups/example.js index 1e6f3cbbe6..632c15fa93 100644 --- a/modules/ROOT/examples/live-demos/tinymceai-multi-editor-groups/example.js +++ b/modules/ROOT/examples/live-demos/tinymceai-multi-editor-groups/example.js @@ -5,14 +5,13 @@ const sharedSettings = { height: '400px', plugins: ['tinymceai', 'advlist', 'lists', 'link', 'autolink', 'table', 'wordcount'], toolbar: 'undo redo | tinymceai-chat tinymceai-review ai-quickactions-translate | styles | bold italic | bullist numlist | link', - tinymceai_sidebar_type: 'floating', tinymceai_chat_welcome_message: '

Welcome to TinyMCE AI. Pick an action below or type your own prompt.

', tinymceai_chat_welcome_actions: [ { text: 'Here are some actions to get started:' }, { title: 'Summarize the document', command: 'TinyMCEAIQuickActionsSummarize' }, { title: 'Continue writing', command: 'TinyMCEAIQuickActionContinueWriting' }, { title: 'Translate to Spanish', command: 'TinyMCEAIQuickActionTranslate', value: 'spanish' }, - { title: 'Review my document', command: 'ToggleSidebar', value: 'tinymceai-review' } + { title: 'Review my document', command: 'TinyMCEAIToggleApp', value: 'tinymceai-review', icon: 'ai-review' } ], tinymceai_token_provider: async () => { return fetch('/api/tinymceai-token', { credentials: 'include' }) @@ -58,11 +57,12 @@ const sharedSettings = { ] }; -// Group 1: the Introduction and Native integration editors share one AI sidebar. +// Group 1: the Introduction and Native integration editors share AI Chat and AI Review in one panel. tinymce.init({ ...sharedSettings, selector: 'textarea#tinymceai-multi-editor-groups-introduction', tinymceai_group: 'article-opening', + tinymceai_decoupled_container: '#tinymceai-multi-editor-groups-opening-panel', // Decoupled mode: each group renders AI Chat and AI Review in its own panel. tinymceai_document_name: 'Introduction', tinymceai_document_description: 'The introduction of the article. A title, a short paragraph that sets out the topic, and a figure.' }); @@ -71,15 +71,17 @@ tinymce.init({ ...sharedSettings, selector: 'textarea#tinymceai-multi-editor-groups-native-integration', tinymceai_group: 'article-opening', + tinymceai_decoupled_container: '#tinymceai-multi-editor-groups-opening-panel', // Decoupled mode: each group renders AI Chat and AI Review in its own panel. tinymceai_document_name: 'Native integration', tinymceai_document_description: 'The section on moving from external AI tools to AI built into the editor, with a bulleted list of benefits.' }); -// Group 2: the Workflow comparison and Adoption challenges editors share a separate AI sidebar and never see the content of group 1. +// Group 2: the Workflow comparison and Adoption challenges editors share a separate panel and never see the content of group 1. tinymce.init({ ...sharedSettings, selector: 'textarea#tinymceai-multi-editor-groups-workflow-comparison', tinymceai_group: 'article-analysis', + tinymceai_decoupled_container: '#tinymceai-multi-editor-groups-analysis-panel', // Decoupled mode: each group renders AI Chat and AI Review in its own panel. tinymceai_document_name: 'Workflow comparison', tinymceai_document_description: 'The section that compares traditional and AI-enhanced workflows. Keep the comparison table.' }); @@ -88,6 +90,7 @@ tinymce.init({ ...sharedSettings, selector: 'textarea#tinymceai-multi-editor-groups-adoption-challenges', tinymceai_group: 'article-analysis', + tinymceai_decoupled_container: '#tinymceai-multi-editor-groups-analysis-panel', // Decoupled mode: each group renders AI Chat and AI Review in its own panel. tinymceai_document_name: 'Adoption challenges', tinymceai_document_description: 'The closing section on adoption challenges. Two short paragraphs.' }); diff --git a/modules/ROOT/examples/live-demos/tinymceai-multi-editor-groups/index.html b/modules/ROOT/examples/live-demos/tinymceai-multi-editor-groups/index.html index a64691acbf..a99124eb07 100644 --- a/modules/ROOT/examples/live-demos/tinymceai-multi-editor-groups/index.html +++ b/modules/ROOT/examples/live-demos/tinymceai-multi-editor-groups/index.html @@ -1,7 +1,9 @@ -
+

Group 1: article-opening

-

Introduction (hosts the AI sidebar of group 1)

+

Introduction (first editor of group 1)

+
+
-

Native integration (shares the AI sidebar of group 1)

+

Native integration (second editor of group 1)

+
+
+

Group 2: article-analysis

-

Workflow comparison (hosts the AI sidebar of group 2)

+

Workflow comparison (first editor of group 2)

+
+
-

Adoption challenges (shares the AI sidebar of group 2)

+

Adoption challenges (second editor of group 2)

+
+
+
diff --git a/modules/ROOT/examples/live-demos/tinymceai-multi-editor-groups/index.js b/modules/ROOT/examples/live-demos/tinymceai-multi-editor-groups/index.js index 5eec82ad4b..a9d525b923 100644 --- a/modules/ROOT/examples/live-demos/tinymceai-multi-editor-groups/index.js +++ b/modules/ROOT/examples/live-demos/tinymceai-multi-editor-groups/index.js @@ -54,7 +54,6 @@ const sharedSettings = { 'quickbars', 'tinymceai', 'tinycomments', 'mentions', 'revisionhistory', 'suggestededits', 'uploadcare' ], toolbar: 'undo redo | tinymceai-chat tinymceai-review ai-quickactions-translate | styles | bold italic | bullist numlist | link', - tinymceai_sidebar_type: 'floating', quickbars_selection_toolbar: 'tinymceai-quickactions addcomment', tinymceai_chat_welcome_message: '

Welcome to TinyMCE AI. Pick an action below or type your own prompt.

', tinymceai_chat_welcome_actions: [ @@ -62,7 +61,7 @@ const sharedSettings = { { title: 'Summarize the document', command: 'TinyMCEAIQuickActionsSummarize' }, { title: 'Continue writing', command: 'TinyMCEAIQuickActionContinueWriting' }, { title: 'Translate to Spanish', command: 'TinyMCEAIQuickActionTranslate', value: 'spanish' }, - { title: 'Review my document', command: 'ToggleSidebar', value: 'tinymceai-review' } + { title: 'Review my document', command: 'TinyMCEAIToggleApp', value: 'tinymceai-review', icon: 'ai-review' } ], toolbar_mode: 'sliding', visual: false, @@ -126,12 +125,13 @@ const sharedSettings = { ] }; -// Group 1: the Introduction and Native integration editors share one AI sidebar. +// Group 1: the Introduction and Native integration editors share AI Chat and AI Review in one panel. tinymce.init({ ...sharedSettings, selector: 'textarea#tinymceai-multi-editor-groups-introduction', revisionhistory_fetch: createRevisionHistoryFetch('textarea#tinymceai-multi-editor-groups-introduction'), tinymceai_group: 'article-opening', + tinymceai_decoupled_container: '#tinymceai-multi-editor-groups-opening-panel', // Decoupled mode: each group renders AI Chat and AI Review in its own panel. tinymceai_document_name: 'Introduction', tinymceai_document_description: 'The introduction of the article. A title, a short paragraph that sets out the topic, and a figure.' }); @@ -141,16 +141,18 @@ tinymce.init({ selector: 'textarea#tinymceai-multi-editor-groups-native-integration', revisionhistory_fetch: createRevisionHistoryFetch('textarea#tinymceai-multi-editor-groups-native-integration'), tinymceai_group: 'article-opening', + tinymceai_decoupled_container: '#tinymceai-multi-editor-groups-opening-panel', // Decoupled mode: each group renders AI Chat and AI Review in its own panel. tinymceai_document_name: 'Native integration', tinymceai_document_description: 'The section on moving from external AI tools to AI built into the editor, with a bulleted list of benefits.' }); -// Group 2: the Workflow comparison and Adoption challenges editors share a separate AI sidebar and never see the content of group 1. +// Group 2: the Workflow comparison and Adoption challenges editors share a separate panel and never see the content of group 1. tinymce.init({ ...sharedSettings, selector: 'textarea#tinymceai-multi-editor-groups-workflow-comparison', revisionhistory_fetch: createRevisionHistoryFetch('textarea#tinymceai-multi-editor-groups-workflow-comparison'), tinymceai_group: 'article-analysis', + tinymceai_decoupled_container: '#tinymceai-multi-editor-groups-analysis-panel', // Decoupled mode: each group renders AI Chat and AI Review in its own panel. tinymceai_document_name: 'Workflow comparison', tinymceai_document_description: 'The section that compares traditional and AI-enhanced workflows. Keep the comparison table.' }); @@ -160,6 +162,7 @@ tinymce.init({ selector: 'textarea#tinymceai-multi-editor-groups-adoption-challenges', revisionhistory_fetch: createRevisionHistoryFetch('textarea#tinymceai-multi-editor-groups-adoption-challenges'), tinymceai_group: 'article-analysis', + tinymceai_decoupled_container: '#tinymceai-multi-editor-groups-analysis-panel', // Decoupled mode: each group renders AI Chat and AI Review in its own panel. tinymceai_document_name: 'Adoption challenges', tinymceai_document_description: 'The closing section on adoption challenges. Two short paragraphs.' }); diff --git a/modules/ROOT/examples/live-demos/tinymceai-multi-editor/example.js b/modules/ROOT/examples/live-demos/tinymceai-multi-editor/example.js index b05a681c92..ed69220da5 100644 --- a/modules/ROOT/examples/live-demos/tinymceai-multi-editor/example.js +++ b/modules/ROOT/examples/live-demos/tinymceai-multi-editor/example.js @@ -1,11 +1,14 @@ // Open-source plugins below are only for editing the demo HTML (lists, links, tables). TinyMCE AI options are the focus. // Share one TinyMCE AI configuration between every editor in the group. const sharedSettings = { - plugins: ['tinymceai', 'advlist', 'lists', 'link', 'autolink', 'table', 'wordcount'], + plugins: ['tinymceai', 'advlist', 'lists', 'link', 'autolink', 'table'], toolbar: 'undo redo | tinymceai-chat tinymceai-review ai-quickactions-translate | styles | bold italic underline | bullist numlist | link table', menubar: false, - tinymceai_sidebar_type: 'floating', - tinymceai_chat_welcome_message: '

Hi! I’m your writing assistant.

I can read and write across all three sections of this hiring pack — refine the role, generate interview questions, or draft notes for HR.

', + help_accessibility: false, + // Decoupled mode: AI Chat and AI Review render in the panel next to the editors instead of in a sidebar. + tinymceai_decoupled_container: '#tinymceai-multi-editor-panel', + tinymceai_decoupled_show: 'tinymceai-chat', + tinymceai_chat_welcome_message: '

Hi! I’m your writing assistant.

I can read and write across both sections of this hiring pack — refine the role or generate interview questions.

', // Every welcome action uses the empty 'no-icon' icon registered in setup, so the buttons show text only. tinymceai_chat_welcome_actions: [ { text: '**Try one of these:**' }, @@ -18,20 +21,11 @@ const sharedSettings = { }, icon: 'no-icon' }, - { - title: 'Draft notes for HR', - command: 'TinyMCEAIChatPrompt', - value: { - prompt: 'Based on the Role description and the Interview questions, draft additional notes for HR about scheduling and running the interviews for this role, and add them to the Notes for HR section.', - displayedPrompt: 'Draft notes for HR' - }, - icon: 'no-icon' - }, { title: 'Flag any unclear or biased wording', command: 'TinyMCEAIChatPrompt', value: { - prompt: 'Check all three sections of this hiring pack for unclear or biased wording. For each phrase, explain the problem and suggest clearer, more inclusive wording.', + prompt: 'Check both sections of this hiring pack for unclear or biased wording. For each phrase, explain the problem and suggest clearer, more inclusive wording.', displayedPrompt: 'Flag any unclear or biased wording' }, icon: 'no-icon' @@ -88,7 +82,6 @@ tinymce.init({ ...sharedSettings, selector: 'textarea#tinymceai-multi-editor-role-description', height: '270px', - sidebar_show: 'tinymceai-chat', tinymceai_group: 'hiring-pack', tinymceai_document_name: 'Role description', tinymceai_document_description: 'The job advert for the role: the job title and location, what the role involves, and the requirements for candidates.' @@ -102,12 +95,3 @@ tinymce.init({ tinymceai_document_name: 'Interview questions', tinymceai_document_description: 'The interview guide for the role: a heading followed by a numbered list of interview questions.' }); - -tinymce.init({ - ...sharedSettings, - selector: 'textarea#tinymceai-multi-editor-notes-for-hr', - height: '260px', - tinymceai_group: 'hiring-pack', - tinymceai_document_name: 'Notes for HR', - tinymceai_document_description: 'Notes for the HR team about scheduling and running the hiring process for the role.' -}); diff --git a/modules/ROOT/examples/live-demos/tinymceai-multi-editor/index.html b/modules/ROOT/examples/live-demos/tinymceai-multi-editor/index.html index 9c8b98d8a4..d788dbe648 100644 --- a/modules/ROOT/examples/live-demos/tinymceai-multi-editor/index.html +++ b/modules/ROOT/examples/live-demos/tinymceai-multi-editor/index.html @@ -1,9 +1,19 @@

Role description

+
+
- -

Notes for HR

- +
+
+
diff --git a/modules/ROOT/examples/live-demos/tinymceai-multi-editor/index.js b/modules/ROOT/examples/live-demos/tinymceai-multi-editor/index.js index b640c3827e..63f55f899e 100644 --- a/modules/ROOT/examples/live-demos/tinymceai-multi-editor/index.js +++ b/modules/ROOT/examples/live-demos/tinymceai-multi-editor/index.js @@ -49,14 +49,17 @@ const createRevisionHistoryFetch = (selector) => () => { // Share one TinyMCE AI configuration between every editor in the group. const sharedSettings = { plugins: [ - 'autolink', 'link', 'emoticons', 'lists', 'table', 'advlist', 'searchreplace', 'wordcount', 'autocorrect', 'tinymcespellchecker', 'charmap', 'fullscreen', 'advcode', 'accordion', 'anchor', 'footnotes', 'powerpaste', 'importword', 'exportpdf', 'exportword', 'markdown', 'a11ychecker', 'typography', 'casechange', 'checklist', 'advtable', 'formatpainter', 'permanentpen', 'tableofcontents', 'help', 'math', 'linkchecker', 'media', 'mediaembed', + 'autolink', 'link', 'emoticons', 'lists', 'table', 'advlist', 'searchreplace', 'autocorrect', 'tinymcespellchecker', 'charmap', 'fullscreen', 'advcode', 'accordion', 'anchor', 'footnotes', 'powerpaste', 'importword', 'exportpdf', 'exportword', 'markdown', 'a11ychecker', 'typography', 'casechange', 'checklist', 'advtable', 'formatpainter', 'permanentpen', 'tableofcontents', 'help', 'math', 'linkchecker', 'media', 'mediaembed', 'quickbars', 'tinymceai', 'tinycomments', 'mentions', 'revisionhistory', 'suggestededits', 'uploadcare' ], toolbar: 'undo redo | tinymceai-chat tinymceai-review ai-quickactions-translate spellchecker | styles | bold italic underline forecolor backcolor casechange | link uploadcare table addcomment | align bullist numlist checklist removeformat | code fullscreen help', menubar: false, - tinymceai_sidebar_type: 'floating', + help_accessibility: false, + // Decoupled mode: AI Chat and AI Review render in the panel next to the editors instead of in a sidebar. + tinymceai_decoupled_container: '#tinymceai-multi-editor-panel', + tinymceai_decoupled_show: 'tinymceai-chat', quickbars_selection_toolbar: 'tinymceai-quickactions addcomment', - tinymceai_chat_welcome_message: '

Hi! I’m your writing assistant.

I can read and write across all three sections of this hiring pack — refine the role, generate interview questions, or draft notes for HR.

', + tinymceai_chat_welcome_message: '

Hi! I’m your writing assistant.

I can read and write across both sections of this hiring pack — refine the role or generate interview questions.

', // Every welcome action uses the empty 'no-icon' icon registered in setup, so the buttons show text only. tinymceai_chat_welcome_actions: [ { text: '**Try one of these:**' }, @@ -69,20 +72,11 @@ const sharedSettings = { }, icon: 'no-icon' }, - { - title: 'Draft notes for HR', - command: 'TinyMCEAIChatPrompt', - value: { - prompt: 'Based on the Role description and the Interview questions, draft additional notes for HR about scheduling and running the interviews for this role, and add them to the Notes for HR section.', - displayedPrompt: 'Draft notes for HR' - }, - icon: 'no-icon' - }, { title: 'Flag any unclear or biased wording', command: 'TinyMCEAIChatPrompt', value: { - prompt: 'Check all three sections of this hiring pack for unclear or biased wording. For each phrase, explain the problem and suggest clearer, more inclusive wording.', + prompt: 'Check both sections of this hiring pack for unclear or biased wording. For each phrase, explain the problem and suggest clearer, more inclusive wording.', displayedPrompt: 'Flag any unclear or biased wording' }, icon: 'no-icon' @@ -157,7 +151,6 @@ tinymce.init({ ...sharedSettings, selector: 'textarea#tinymceai-multi-editor-role-description', height: '270px', - sidebar_show: 'tinymceai-chat', revisionhistory_fetch: createRevisionHistoryFetch('textarea#tinymceai-multi-editor-role-description'), tinymceai_group: 'hiring-pack', tinymceai_document_name: 'Role description', @@ -173,13 +166,3 @@ tinymce.init({ tinymceai_document_name: 'Interview questions', tinymceai_document_description: 'The interview guide for the role: a heading followed by a numbered list of interview questions.' }); - -tinymce.init({ - ...sharedSettings, - selector: 'textarea#tinymceai-multi-editor-notes-for-hr', - height: '260px', - revisionhistory_fetch: createRevisionHistoryFetch('textarea#tinymceai-multi-editor-notes-for-hr'), - tinymceai_group: 'hiring-pack', - tinymceai_document_name: 'Notes for HR', - tinymceai_document_description: 'Notes for the HR team about scheduling and running the hiring process for the role.' -}); diff --git a/modules/ROOT/pages/8.11.0-release-notes.adoc b/modules/ROOT/pages/8.11.0-release-notes.adoc index 5f159ba343..e89dd42d41 100644 --- a/modules/ROOT/pages/8.11.0-release-notes.adoc +++ b/modules/ROOT/pages/8.11.0-release-notes.adoc @@ -11,185 +11,288 @@ include::partial$misc/admon-releasenotes-for-stable.adoc[] [[overview]] == Overview -{productname} {release-version} was released for {enterpriseversion} and {cloudname} on ,
^^, . These release notes provide an overview of the changes for {productname} {release-version}, including: +{productname} {release-version} was released for {enterpriseversion} and {cloudname} on Wednesday, November 25^th^, 2026. These release notes provide an overview of the changes for {productname} {release-version}, including: -// Remove sections and section boilerplates as necessary. -// Pluralise as necessary or remove the placeholder plural marker. -* xref:new-premium-plugin[New Premium plugin] -* xref:new-open-source-plugin[New Open Source plugin] * xref:accompanying-premium-plugin-changes[Accompanying Premium plugin changes] -* xref:accompanying-premium-plugin-end-of-life-announcement[Accompanying Premium plugin end-of-life announcement] -* xref:accompanying-open-source-plugin-end-of-life-announcement[Accompanying open source plugin end-of-life-announcement] -* xref:accompanying-enhanced-skins-and-icon-packs-changes[Accompanying Enhanced Skins & Icon Packs changes] * xref:improvements[Improvements] * xref:additions[Additions] -* xref:changes[Changes] * xref:bug-fixes[Bug fixes] -* xref:security-fixes[Security fixes] -* xref:deprecated[Deprecated] -* xref:known-issues[Known issues] -[[new-premium-plugin]] -== New Premium plugin +[[accompanying-premium-plugin-changes]] +== Accompanying Premium plugin changes -The following new Premium plugin was released alongside {productname} {release-version}. +The following premium plugin updates were released alongside {productname} {release-version}. -=== +=== Suggested Edits -The new Premium plugin, **** // description here. +The {productname} {release-version} release includes an accompanying release of the **Suggested Edits** premium plugin. -For information on the **** plugin, see xref:.adoc[]. +**Suggested Edits** includes the following fix. +==== The red X overlay on deleted media could be missing in Diff mode, or stay visible in Preview mode, after switching modes when the switch did not change the height of the content +// #TINYMCE-15198 -[[new-open-source-plugin]] -== New Open Source plugin +Previously, switching between **Diff mode** and **Preview** in the Review edits view could leave the red X that marks a deleted image, video, or embedded frame in the wrong state. The **Suggested Edits** plugin updated the position of the red X when the content changed size or when a reviewer selected a different suggestion, but not when the reviewer switched modes. When a switch did not change the height of the content, such as when the deleted media was a small inline image, the red X stayed in its old position. In **Preview**, the red X could remain over the text where the hidden image had been. In **Diff mode**, the deleted image could appear without its red X. Reviewers saw deleted media marked in the wrong place, or not marked at all, until they selected another suggestion. -The following new Open Source plugin was released alongside {productname} {release-version}. +In {productname} {release-version}, the **Suggested Edits** plugin repositions the red X every time a reviewer switches between **Diff mode** and **Preview**. In **Diff mode**, the red X marks each deleted image, video, and embedded frame. In **Preview**, the red X no longer appears where deleted media is hidden. -=== +For information on the **Suggested Edits** plugin, see: xref:suggestededits.adoc#document[Document]. -The new open source plugin, **** // description here. +=== Format Painter -For information on the **** plugin, see xref:.adoc[]. +The {productname} {release-version} release includes an accompanying release of the **Format Painter** premium plugin. +**Format Painter** includes the following additions. -[[accompanying-premium-plugin-changes]] -== Accompanying Premium plugin changes +==== Double-clicking the format painter toolbar button now enables sticky mode, keeping the format painter active to apply the copied formatting multiple times +// #TINYMCE-15104 -The following premium plugin updates were released alongside {productname} {release-version}. +Previously, the format painter turned off after applying the copied formatting once. To apply the same formatting to several pieces of content with the toolbar button, users had to copy the formatting again before each application. + +In {productname} {release-version}, double-clicking the format painter toolbar button turns on sticky mode. In sticky mode, the format painter stays active and applies the copied formatting to each piece of content the user selects. Clicking the toolbar button again or pressing `+Esc+` turns off sticky mode. For the steps, see: xref:formatpainter.adoc#using-format-painter[Using Format Painter]. + +==== New `+mceToggleStickyFormatPainter+` command to toggle the format painter sticky mode +// #TINYMCE-15104 + +Previously, no command turned on sticky mode in the format painter, so integrations could not start sticky mode programmatically. + +In {productname} {release-version}, the new xref:formatpainter.adoc#commands[`+mceToggleStickyFormatPainter+`] command copies the formatting from the current selection and turns on sticky mode. Running the `+mceToggleFormatPainter+` command turns off sticky mode. + +For information on the **Format Painter** plugin, see: xref:formatpainter.adoc[Format Painter]. + +=== Image Editing + +The {productname} {release-version} release includes an accompanying release of the **Image Editing** premium plugin. + +**Image Editing** includes the following fix. + +==== Editing images or applying updates before the image loaded could lose the change +// #TINYMCE-3693 + +Previously, the **Image Editing** plugin did not wait for an image to finish loading before editing it. Opening the **Edit Image** dialog on an image that was still loading in the editor could cause the dialog to fail. For an image that took several seconds to load, clicking **Edit image** did nothing until the image loaded, with no sign that anything was happening. Inside the dialog, clicking **Apply** on an adjustment, such as a rotation or a brightness change, before its preview finished rendering could discard the adjustment. Users could lose an edit without any warning. + +In {productname} {release-version}, the **Image Editing** plugin waits for the image to load before showing the editing tools. When an image is slow to load, the **Edit Image** dialog opens immediately with a **Loading...** message and the **Save** button disabled, then shows the editing tools once the image is ready. Clicking **Cancel** while the image loads closes the dialog. When a user clicks **Apply**, the dialog waits for the latest preview to finish rendering and keeps the adjustment. + +For information on the **Image Editing** plugin, see: xref:editimage.adoc[Image Editing]. + + +=== TinyMCE AI + +The {productname} {release-version} release includes an accompanying release of the **TinyMCE AI** premium plugin. + +**TinyMCE AI** includes the following fixe and additions and improvements. + +==== Added new `+tinymceai_decoupled_container+` option to render AI Chat and AI Review in an element provided by a CSS selector +// #TINYMCE-15031 + +Previously, the **TinyMCE AI** plugin always rendered AI Chat and AI Review in an editor sidebar, either static or floating. Applications that have their own panel or layout for the AI interface could not render AI Chat and AI Review there. + +In {productname} {release-version}, the new xref:tinymceai.adoc#tinymceai_decoupled_container[`+tinymceai_decoupled_container+`] option turns on xref:tinymceai.adoc#decoupled-mode[decoupled mode]. The option takes a CSS selector, and the plugin renders AI Chat and AI Review inside the matching element instead of in a sidebar. The new xref:tinymceai.adoc#tinymceai-toggling-apps-decoupled[`+TinyMCEAIToggleApp+`] command opens and closes AI Chat and AI Review in that element, and the matching `+TinyMCEAIToggleApp+` event reports each change. Decoupled mode also works with xref:tinymceai-multi-editor.adoc#decoupled-mode-group[multi-editor groups]. + +==== Added `+tinymceai_decoupled_show+` option to set the initial view +// #TINYMCE-15032 + +In {productname} {release-version}, the new xref:tinymceai.adoc#tinymceai_decoupled_show[`+tinymceai_decoupled_show+`] option opens AI Chat or AI Review in the element set by `+tinymceai_decoupled_container+` when the editor initializes. In decoupled mode, use this option in place of the core xref:customsidebar.adoc#sidebar_show[`+sidebar_show+`] option. + +==== New `+TinyMCEAIPreview+` query command state to check whether an editor has a preview of AI suggestions open +// #TINYMCE-15033 -=== +Previously, integrations had no public way to check whether an editor showed a preview of AI suggestions that the user had not yet resolved. -The {productname} {release-version} release includes an accompanying release of the **** premium plugin. +In {productname} {release-version}, `+queryCommandState('TinyMCEAIPreview')+` returns `+true+` while the editor shows a preview of AI suggestions to resolve. For details, see xref:tinymceai.adoc#tinymceai-preview-state[Checking for an open preview]. -**** includes the following . +==== Adding a corrupt file as a context source now shows a message saying the file could not be processed, instead of the generic upload error +// #TINYMCE-14815 -==== +Previously, when a user added a corrupt file, such as a damaged PDF or DOCX file, as a xref:tinymceai-chat.adoc#files-urls-and-external-resources[context source] in the Chat sidebar, the **TinyMCE AI** plugin showed an error message about the size or type of the file, for example `+This file can't be added. Try a smaller file, or a different file type.+` The message did not describe the actual problem, so users could try a smaller file or a different file format and still get the same error. -// CCFR here. +In {productname} {release-version}, when the AI service cannot process an added file, the plugin shows `+This file couldn't be processed. Try attaching a different file.+` The message identifies the file itself as the cause and tells users what to do next. The messages for files that are too large, have too many pages, or have an unsupported type are unchanged. For the supported file types and the size and page limits that trigger these messages, see xref:tinymceai-models.adoc#file-processing-limits[File processing limits]. -For information on the **** plugin, see: xref:.adoc[]. +For information on the **TinyMCE AI** plugin, see: xref:tinymceai-chat.adoc#adding-context-to-conversations[Adding context to conversations]. +==== Removing the editor that hosted the sidebar of a group left the AI chat and review buttons of the other editors highlighted +// #TINYMCE-15057 -[[accompanying-premium-plugin-end-of-life-announcement]] -== Accompanying Premium plugin end-of-life announcement +Previously, in a xref:tinymceai-multi-editor.adoc[multi-editor group], removing the editor that hosted the shared Chat and Review sidebar left the group without a sidebar. The Chat and Review toolbar buttons in the other editors of the group stayed highlighted as if the sidebar were still open. -The following Premium plugin has been announced as reaching its end-of-life: +In {productname} {release-version}, when the editor that hosts the sidebar is removed, the sidebar closes. The first remaining editor of the group to be created becomes the new host. The Chat and Review toolbar buttons in the remaining editors are no longer highlighted, and opening Chat or Review from any remaining editor opens the sidebar in the new host. If the group is previewing AI changes, every editor in the group leaves the preview. Removing any other editor of the group leaves the sidebar open. -=== +For information on the **TinyMCE AI** plugin, see: xref:tinymceai-multi-editor.adoc#shared-sidebar[Shared sidebar]. -{productname}’s xref:.adoc[] plugin will be deactivated on
, , and is no longer available for purchase. +==== The red X overlay on deleted media in the AI preview could be missing in Diff mode, or stay visible in Preview mode, after switching modes when the switch did not change the height of the content +// #TINYMCE-15198 +Previously, when the **TinyMCE AI** plugin previewed suggested changes, switching between **Diff mode** and **Preview** in the review bar could leave the red X that marks a deleted image, video, or embedded frame in the wrong state. The plugin updated the position of the red X when the content changed size or when a user selected a different suggestion, but not when the user switched modes. When a switch did not change the height of the content, such as when the deleted media was a small inline image, the red X stayed in its old position. In **Preview**, the red X could remain over the text where the hidden image had been. In **Diff mode**, the deleted image could appear without its red X. Users saw deleted media marked in the wrong place, or not marked at all, until they selected another suggestion. -[[accompanying-open-source-plugin-end-of-life-announcement]] -== Accompanying open source plugin end-of-life announcement +In {productname} {release-version}, the **TinyMCE AI** plugin repositions the red X every time a user switches between **Diff mode** and **Preview**. In **Diff mode**, the red X marks each deleted image, video, and embedded frame. In **Preview**, the red X no longer appears where deleted media is hidden. -The following open source plugin has been announced as reaching its end-of-life: +For information on the **TinyMCE AI** plugin, see: xref:tinymceai-chat.adoc#previewing-changes[Previewing changes]. -=== +==== Editors could not be removed dynamically from a group +// #TINYMCE-15056 -{productname}’s xref:.adoc[] plugin will be deactivated on
, , and is no longer available for purchase. +Previously, when an application removed an editor from a xref:tinymceai-multi-editor.adoc[multi-editor group], the chat kept the context tag of the removed editor until the user opened the **Add context source** menu. Any open preview also remained, and any request in progress that included the removed editor continued to run. The chat then referred to content that was no longer on the page. +In {productname} {release-version}, when an editor leaves its group, the **TinyMCE AI** plugin removes the context tag of that editor from the chat and stops any chat request in progress. If the group has pending suggestions, the plugin discards them in every editor of the group and returns each editor to normal editing. The context tags of the remaining editors stay in the chat, and users can continue to send prompts. -[[accompanying-enhanced-skins-and-icon-packs-changes]] -== Accompanying Enhanced Skins & Icon Packs changes +For information on the **TinyMCE AI** plugin, see: xref:tinymceai-multi-editor.adoc[TinyMCE AI multi-editor mode]. -The {productname} {release-version} release includes an accompanying release of the **Enhanced Skins & Icon Packs**. +==== Adding an editor to a group did not add its document to the chat context +// #TINYMCE-15102 -=== Enhanced Skins & Icon Packs +Previously, when an editor joined a xref:tinymceai-multi-editor.adoc[multi-editor group] after the group was already in use, the **TinyMCE AI** plugin did not add that editor to the chat context. No context tag appeared for the new editor, and the **Add context source** menu did not list it. Users could not include the content of the new editor in a chat or a group review without reloading the page. -The **Enhanced Skins & Icon Packs** release includes the following updates: +In {productname} {release-version}, when an editor joins a group, the plugin adds a context tag for that editor to the chat immediately, including during a conversation that is already in progress. The **Add context source** menu also lists the new editor, and the next review of the group covers the content of that editor. The chat context stays up to date whenever an editor joins a group. -The **Enhanced Skins & Icon Packs** were rebuilt to pull in the changes also incorporated into the default {productname} {release-version} skin, Oxide. +For information on the **TinyMCE AI** plugin, see: xref:tinymceai-multi-editor.adoc#chat[Chat]. -For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-and-icon-packs.adoc[Enhanced Skins & Icon Packs]. +==== Focus now stays on the same AI preview toolbar button when the toolbar moves between editors +// #TINYMCE-14930 + +Previously, when the **TinyMCE AI** plugin previewed changes in several editors of a xref:tinymceai-multi-editor.adoc[multi-editor group], the shared preview toolbar always focused its first button when it moved to another editor. The toolbar moves when a user steps past the last change in one editor with **Next** or **Previous**, or resolves the last change in an editor with **Apply suggestion** or **Skip suggestion**. Keyboard users then had to move focus back to the button they were using before they could continue, even though the whole group shares a single toolbar. + +In {productname} {release-version}, when the preview toolbar moves to another editor, the button the user just pressed receives focus in the new position. Keyboard users can keep pressing the same button to step through, apply, or skip changes across every editor in the group, including when **Next** wraps around from the last change in the group to the first. If that button is disabled in the new position, the toolbar itself receives focus instead. When a user clicks a change in an editor, the toolbar opens with focus on its first button, as before. + +For information on the **TinyMCE AI** plugin, see: xref:tinymceai-multi-editor.adoc#previewing-and-applying-changes[Previewing and applying changes]. + +==== Document context was not restored when resuming a conversation in a single editor with the `+tinymceai_document_name+` option set +// #TINYMCE-14994 + +Previously, when the xref:tinymceai.adoc#tinymceai_document_name[`+tinymceai_document_name+`] option was set on an editor that was not part of a multi-editor group, reopening a conversation that included the document from the xref:tinymceai-chat.adoc#chat-history[chat history] did not restore the document. The **TinyMCE AI** plugin tried to match the saved document name against the editors of a group. Without a group, the plugin found no match, so no context tag for the editor content appeared above the prompt input. The next prompt did not include the document, and the plugin could not apply the changes that the AI suggested in reply. + +In {productname} {release-version}, when a user resumes a conversation in an editor that is not part of a group, the plugin restores the context tag for the editor content, whether or not `+tinymceai_document_name+` is set. The next prompt includes the document, and the plugin can apply the changes that the AI suggests. In a xref:tinymceai-multi-editor.adoc[multi-editor group], when none of the saved document names match an editor in the group, the plugin now attaches the content of every editor in the group, as it does for a new conversation, instead of attaching no document. + +For information on the **TinyMCE AI** plugin, see: xref:tinymceai-chat.adoc#current-document-and-selection[Current document and selection]. + +==== New `+TinyMCEAIDiscardSuggestions+` command to discard the AI suggestions previewed in an editor +// #TINYMCE-15157 + +Previously, integrations had no public way to discard the AI suggestions previewed in an editor. In decoupled mode, the **TinyMCE AI** plugin does not show its own confirmation dialog before the AI view closes, so an integration that detected pending suggestions could not complete its own prompt to discard them. + +In {productname} {release-version}, the new `+TinyMCEAIDiscardSuggestions+` command discards the AI suggestions previewed in the editor it runs on, without applying any of them. The editor keeps the content it had before the preview, and returns to the editor mode it had before the preview. In a xref:tinymceai-multi-editor.adoc[multi-editor group], the command affects only the editor it runs on, so an integration runs the command on each editor in the group to discard every suggestion. For details, see xref:tinymceai.adoc#tinymceai-discard-suggestions[Discarding previewed suggestions]. + +For information on the **TinyMCE AI** plugin, see: xref:tinymceai.adoc[TinyMCE AI]. [[improvements]] == Improvements -{productname} {release-version} also includes the following improvement: +{productname} {release-version} also includes the following improvements: + +=== Changing the width in the Cell Properties dialog now uses the inline column resize logic to ensure the table width does not change +// #TINYMCE-13193 + +Previously, changing the width in the **Cell Properties** dialog set the new width on the column or cell but did not adjust the other columns. The column widths no longer added up to the table width, so the browser rescaled every column to fit. The edited column often did not display at the entered width, and the other columns changed size unpredictably, so users had to correct them manually. + +In {productname} {release-version}, changing the width in the **Cell Properties** dialog resizes the column in the same way as dragging the column border. The next column grows or shrinks to make up the difference, or the previous column when the last column is resized, and the table keeps its width. The dialog keeps the table width regardless of the xref:table-options.adoc#table_column_resizing[`+table_column_resizing+`] option. The adjacent column never shrinks below the minimum cell width. The dialog converts a width entered in pixels or as a percentage to the table's unit. When the table has no width, or the width uses a unit other than pixels or percentages, the dialog sets the width of the selected cells only, as in earlier versions. -=== -// #TINY-vwxyz1 +=== Inserting an accordion at the end of the content now adds an empty paragraph after it, so the caret can be placed below the accordion +// #TINYMCE-9955 -// CCFR here. +Previously, inserting an accordion at the end of the content left no block below it. Clicking below the accordion did not place the caret, so users had to press Down Arrow from inside the accordion before they could add content after it. + +In {productname} {release-version}, the xref:accordion.adoc[Accordion plugin] adds an empty block after an accordion that it inserts at the end of the content. The block uses the element and attributes set by the xref:content-filtering.adoc#forced_root_block[`+forced_root_block+`] and xref:content-filtering.adoc#forced_root_block_attrs[`+forced_root_block_attrs+`] options. By default, the block is a paragraph. Clicking below the accordion places the caret in the new block. Inserting an accordion between existing blocks does not add an empty block. [[additions]] == Additions -{productname} {release-version} also includes the following addition: +{productname} {release-version} also includes the following additions: -=== -// #TINY-vwxyz1 +=== New `+onDoubleClick+` option for toolbar toggle buttons, called when the button is double clicked +// #TINYMCE-15104 -// CCFR here. +Previously, a custom toolbar toggle button could respond only to single clicks, through its `+onAction+` function. +In {productname} {release-version}, toggle buttons registered with `+editor.ui.registry.addToggleButton+` accept a new optional xref:custom-toggle-toolbar-button.adoc#options[`+onDoubleClick+`] function. {productname} calls the function with the button API when the user double-clicks the button, unless the button is disabled. The browser registers each click of a double-click, so the `+onAction+` function runs twice before the `+onDoubleClick+` function runs. -[[changes]] -== Changes +=== The `+table_appearance_options+` option now also accepts an object with `+cellspacing+`, `+cellpadding+`, `+borderwidth+` and `+caption+` keys, to hide individual fields in the Table Properties dialog +// #TINYMCE-11998 -{productname} {release-version} also includes the following change: +Previously, the xref:table.adoc#table_appearance_options[`+table_appearance_options+`] option showed or hid the **Cell spacing**, **Cell padding**, **Border width**, and **Caption** fields of the Table Properties dialog only as a group. Integrators who wanted to stop authors from changing one field, such as **Cell spacing**, also had to hide the other three fields. -=== -// #TINY-vwxyz1 +In {productname} {release-version}, the option also accepts an object that controls each field separately. A field set to `+false+` is hidden, and a field set to `+true+` or left out stays visible. For example, `+table_appearance_options: { cellspacing: false }+` hides only the **Cell spacing** field. The `+true+` and `+false+` values work as before. -// CCFR here. +[[bug-fixes]] +== Bug fixes -[[removed]] -== Removed +{productname} {release-version} also includes the following bug fixes: -{productname} {release-version} also includes the following removal: +=== Integrations moving focus between inline editors could revert focus back to the previous editor +// #TINYMCE-14953 -=== -// #TINY-vwxyz1 +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. -// CCFR here. +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. +=== Focusing the editor with `+scrollToSelection: false+` still scrolled on Safari 26 and later +// #TINYMCE-15097 -[[bug-fixes]] -== Bug fixes +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. + +=== Pressing Tab could move focus into a disabled editor, which showed no focus indicator +// #TINYMCE-13514 + +Previously, when the xref:editor-important-options.adoc#disabled[`+disabled+`] option disabled the editor, pressing Tab could still move focus into the editor content area. The disabled editor showed no focus indicator. As a result, keyboard and screen reader users reached an editor they could not use, and they could not tell where focus had gone. The xref:editor-important-options.adoc#auto_focus[`+auto_focus+`] option could also focus a disabled editor when the page loaded. + +In {productname} {release-version}, pressing Tab moves focus past a disabled editor, and the `+auto_focus+` option no longer focuses a disabled editor. When the editor becomes enabled again, {productname} returns it to the tab order and restores any existing `+tabindex+` value. + +=== Image resize handler was not shown on hybrid devices with both a touchscreen and a mouse or trackpad +// #TINYMCE-14668 + +Previously, {productname} treated a hybrid device, such as a Windows 2-in-1 laptop, as touch-only whenever the browser reported a touchscreen as the primary pointer, even when a mouse or trackpad was also present. It hid the resize handles on images and tables, and forced table cell selection to use the touch handles instead of the mouse or trackpad. + +In {productname} {release-version}, a device that does not run iOS or Android counts as a touch device only when no mouse, trackpad, or other precise pointer is available. On hybrid devices, these options have the same default values as on desktop devices, so the resize handles appear on images and tables. Users of hybrid devices can resize images and select table cells with the mouse or trackpad, without switching to the touchscreen. + +=== Formatting text in Firefox 158 and later removed quotes around font names that contain spaces +// #TINYMCE-15130 + +Previously, in Firefox 158 and later, formatting text that used a font name containing spaces removed the quotes around the font name. For example, applying a text color to a `+span+` element with the style `+font-family: 'arial black'+` changed the style to `+font-family: arial black+`. The cause is a change in Firefox 158: the browser no longer quotes multi-word font names when it rewrites a style attribute, while Chrome and earlier versions of Firefox keep the quotes. Both forms are valid CSS and display the same font, but the HTML returned by xref:apis/tinymce.editor.adoc#getContent[`+editor.getContent()+`] and shown in the source code view depended on the browser. Integrations that compared or stored editor content as text could get different HTML for the same content in different browsers, even though the difference had no visible effect. -{productname} {release-version} also includes the following bug fix: +In {productname} {release-version}, {productname} adds single quotes around any unquoted font name that contains spaces, so formatted content keeps `+font-family: 'arial black'+` in every browser. {productname} leaves font names that are already quoted, values that use a CSS function such as `+var()+`, and values marked `+!important+` unchanged. Generic font families, such as `+sans-serif+`, are single words and stay unquoted. -=== -// #TINY-vwxyz1 +=== Resizing the sidebar in a right-to-left editor resized it in the opposite direction to the drag +// #TINYMCE-14904 -// CCFR here. +Previously, when the xref:ui-localization.adoc#language[`+language+`] option was set to a right-to-left language, such as Arabic, dragging the resize handle of a sidebar changed the sidebar width in the opposite direction to the pointer. In a right-to-left editor, the sidebar sits on the left and the resize handle is on the edge next to the editor content. Dragging the handle toward the editor content made the sidebar narrower instead of wider. This affected every sidebar registered with the xref:customsidebar.adoc#resizable[`+resizable+`] property set to `+true+`, including the sidebars of the Comments and {productname} AI plugins, so users of right-to-left languages could not resize these sidebars as expected. +In {productname} {release-version}, the resize handle follows the pointer in right-to-left editors, as it does in left-to-right editors. Dragging the handle toward the editor content widens the sidebar, and dragging it away narrows it. The xref:customsidebar.adoc#sidebar_min_width[`+sidebar_min_width+`] and xref:customsidebar.adoc#sidebar_max_width[`+sidebar_max_width+`] options and the minimum width of the editing area still limit the sidebar width. -[[security-fixes]] -== Security fixes +=== Clicking to the left or right of an accordion did not place the caret before or after it +// #TINYMCE-9955 -{productname} {release-version} includes : +Previously, clicking to the left or right of an accordion did not place the caret beside it. Users could not use the mouse to add content directly before or after an accordion, or between two adjacent accordions. -=== -// #TINY-vwxyz1 +In {productname} {release-version}, clicking to the left or right of an accordion places the caret before or after it, as clicking beside a table does. Typing at that position adds a new paragraph before or after the accordion. -// CCFR here. +=== It was not possible to place the caret between two adjacent accordions using the arrow keys +// #TINYMCE-9955 +Previously, when two accordions were next to each other, pressing Right Arrow at the end of the first accordion moved the caret into the second accordion, and pressing Left Arrow at the start of the second accordion moved the caret into the first. Keyboard users could not place the caret between the accordions to add content there. -[[deprecated]] -== Deprecated +In {productname} {release-version}, pressing Left Arrow or Right Arrow to leave an accordion places the caret beside the accordion when another accordion is next to it or when the accordion is at the start or end of the content. From that position, Up Arrow and Down Arrow move the caret into the adjacent accordion or to the adjacent line, and pressing Enter adds a new paragraph. -{productname} {release-version} includes the following deprecation: +=== Pressing Delete or Backspace did not remove an empty block before or after an accordion +// #TINYMCE-9955 -=== The `` configuration property, ``, has been deprecated +Previously, pressing Delete in an empty first block directly before an accordion, such as an empty block at the start of the content, did not remove the block. Pressing Backspace in an empty last block directly after an accordion, such as an empty block at the end of the content, also did not remove the block. Users could not remove these empty blocks. -// placeholder here. +In {productname} {release-version}, pressing Delete in an empty block before an accordion removes the block and moves the caret into the accordion summary. Pressing Backspace in an empty block after an accordion removes the block and moves the caret to the end of the accordion content. When the empty block is inside a container with no other content, such as a list, the editor removes the container as well. The editor never removes a table cell that contains the empty block. +=== Removing bold or italic from a nested list item no longer leaves it styled through inheritance from its parent list item +// #TINYMCE-14935 -[[known-issues]] -== Known issues +Previously, when a user made a whole list item bold or italic, any list nested inside it also appeared bold or italic. Removing the formatting from a nested list item had no visible effect, because the nested item still inherited the style from the list item that contained it. -This section describes issues that users of {productname} {release-version} may encounter and possible workarounds for these issues. +In {productname} {release-version}, removing bold or italic from a nested list item takes effect. The nested item no longer appears bold or italic, and the list item that contains it keeps its formatting. -There known issue in {productname} {release-version}. +=== Saving the Table Properties dialog with `+table_appearance_options+` hiding fields no longer removes the table's existing cell spacing, border width or caption +// #TINYMCE-15197 -=== -// #TINY-vwxyz1 +Previously, when the xref:table.adoc#table_appearance_options[`+table_appearance_options+`] option hid fields in the Table Properties dialog, saving the dialog cleared the existing values of the hidden fields on the table. For example, with **Cell spacing**, **Border width**, and **Caption** hidden, changing only the **Width** of a table and clicking **Save** removed the cell spacing of the table and its border width, reset a `+border+` attribute such as `+border="3"+` to `+1+`, and deleted the table caption. The dialog did not show the hidden fields, so users could not see the change or restore the lost values from the dialog. -// CCFR here. \ No newline at end of file +In {productname} {release-version}, saving the Table Properties dialog leaves the values of hidden fields unchanged on the table. {productname} also no longer applies the xref:table-options.adoc#table_default_styles[`+table_default_styles+`] and xref:table-options.adoc#table_default_attributes[`+table_default_attributes+`] values for a hidden field over the existing value. Saving the dialog changes only the fields that the dialog shows, and the cell spacing, border width, cell padding, and caption of the table stay as they were. diff --git a/modules/ROOT/pages/changelog.adoc b/modules/ROOT/pages/changelog.adoc index cfe79b52ea..88874fb225 100644 --- a/modules/ROOT/pages/changelog.adoc +++ b/modules/ROOT/pages/changelog.adoc @@ -5,9 +5,49 @@ NOTE: This is the {productname} Community version changelog. For information about the latest {cloudname} or {enterpriseversion} Release, see: xref:release-notes.adoc[{productname} Release Notes]. -== xref:8.11.0-release-notes.adoc[8.11.0 - ] +== xref:8.11.0-release-notes.adoc[8.11.0 - 2026-11-25] -//TODO +### Added +* New `onDoubleClick` option for toolbar toggle buttons, called when the button is double clicked. +// #TINYMCE-15104 +* The `table_appearance_options` option now also accepts an object with `cellspacing`, `cellpadding`, `borderwidth` and `caption` keys, to hide individual fields in the Table Properties dialog. +// #TINYMCE-11998 + +### Improved +* Inserting an accordion at the end of the content now adds an empty paragraph after it, so the caret can be placed below the accordion. +// #TINYMCE-9955 +* Changing the width in the Cell Properties dialog now uses the inline column resize logic to ensure the table width does not change. +// #TINYMCE-13193 + +### Fixed +* Dialogs opened inline from the toolbar scrolled out of view with the toolbar instead of staying at the top of the window. +// #TINYMCE-10480 +* Integrations moving focus between inline editors could revert focus back to the previous editor. +// #TINYMCE-14953 +* Removing bold or italic from a nested list item no longer leaves it styled through inheritance from its parent list item. +// #TINYMCE-14935 +* Resizing the sidebar in a right-to-left editor resized it in the opposite direction to the drag. +// #TINYMCE-14904 +* Clicking to the left or right of an accordion did not place the caret before or after it. +// #TINYMCE-9955 +* It was not possible to place the caret between two adjacent accordions using the arrow keys. +// #TINYMCE-9955 +* Pressing Delete or Backspace did not remove an empty block before or after an accordion. +// #TINYMCE-9955 +* Focusing the editor with `scrollToSelection: false` still scrolled on Safari 26 and later. +// #TINYMCE-15097 +* The `editor.insertContent` API removed inline formatting when the selection covered the entire block content and the content was wrapped in an inline format element. +// #TINYMCE-11317 +* Formatting text in Firefox 158 and later removed quotes around font names that contain spaces. +// #TINYMCE-15130 +* The `ToggleView` command ignored the `skip_focus` argument. +// #TINYMCE-15108 +* Pressing Tab could move focus into a disabled editor, which showed no focus indicator. +// #TINYMCE-13514 +* Image resize handler was not shown on hybrid devices with both a touchscreen and a mouse or trackpad. +// #TINYMCE-14668 +* Saving the Table Properties dialog with `table_appearance_options` hiding fields no longer removes the table's existing cell spacing, border width or caption. +// #TINYMCE-15197 == xref:8.10.2-release-notes.adoc[8.10.2 - 2026-11-11] diff --git a/modules/ROOT/pages/custom-toggle-toolbar-button.adoc b/modules/ROOT/pages/custom-toggle-toolbar-button.adoc index 8948756452..a61e0286e2 100644 --- a/modules/ROOT/pages/custom-toggle-toolbar-button.adoc +++ b/modules/ROOT/pages/custom-toggle-toolbar-button.adoc @@ -18,6 +18,7 @@ include::partial$misc/admon-predefined-icons-only.adoc[] |active |boolean |optional |default: `false` - Represents the button's active state. When `true`, the button is highlighted. Can be changed using `+setActive+` from the button's API. |onSetup |`+(api) => (api) => void+` |optional |default: `+() => () => {}+` - Function invoked when the button is rendered. For details, see: xref:using-onsetup[Using `+onSetup+`]. |onAction |`+(api) => void+` |required |Function invoked when the button is clicked. +|onDoubleClick |`+(api) => void+` |optional |Function invoked when the button is double-clicked. Not invoked when the button is disabled. The browser registers each click of a double-click, so `+onAction+` runs twice before `+onDoubleClick+` runs. Requires {productname} 8.11 or newer. |shortcut |string |optional |Shortcut to display in the tooltip. To register a shortcut, see: xref:shortcuts.adoc[Add custom shortcuts to {productname}]. |context |string |optional |default: `mode:design` - The context property dynamically enables or disables the button based on the editor's current state. For details, see: xref:context.adoc[Context]. |=== diff --git a/modules/ROOT/pages/editor-command-identifiers.adoc b/modules/ROOT/pages/editor-command-identifiers.adoc index bb046e2e29..01a0b7481e 100644 --- a/modules/ROOT/pages/editor-command-identifiers.adoc +++ b/modules/ROOT/pages/editor-command-identifiers.adoc @@ -530,7 +530,7 @@ include::partial$commands/tableofcontents-cmds.adoc[leveloffset=+3] [[tinymceai]] ==== TinyMCE AI -The xref:tinymceai.adoc[TinyMCE AI (`+tinymceai+`)] plugin registers AI Chat and AI Review sidebars, Quick Actions-related editor commands, and uses the core `+ToggleSidebar+` command for sidebar visibility. The following partial covers `+ToggleSidebar+`, floating-sidebar behavior, and plugin command names. +The xref:tinymceai.adoc[TinyMCE AI (`+tinymceai+`)] plugin registers AI Chat and AI Review sidebars, Quick Actions-related editor commands, and uses the core `+ToggleSidebar+` command for sidebar visibility. The following partial covers `+ToggleSidebar+`, floating-sidebar behavior, the `+TinyMCEAIToggleApp+` command for decoupled mode, and plugin command names. include::partial$commands/tinymceai-cmds.adoc[leveloffset=+3] diff --git a/modules/ROOT/pages/formatpainter.adoc b/modules/ROOT/pages/formatpainter.adoc index 12957656f9..52a2ce1181 100644 --- a/modules/ROOT/pages/formatpainter.adoc +++ b/modules/ROOT/pages/formatpainter.adoc @@ -48,6 +48,17 @@ The format painter operates in two modes, one for retrieval and one for applicat *Result*: The formatting from the source content is applied to the goal content. +*Usage with toolbar button in sticky mode* + +Sticky mode keeps the format painter active to apply the same formatting to several pieces of content. + +. Position the cursor at the source content to retrieve the formatting. +. Double-click the *Format Painter* button to copy the formatting and turn on sticky mode. +. Select each piece of goal content to apply the formatting. +. Click the *Format Painter* button or press `+Esc+` to turn off sticky mode. + +*Result*: The formatting from the source content is applied to each piece of goal content. + *Usage with keyboard* . Position the cursor at the source content to retrieve formatting. diff --git a/modules/ROOT/pages/tinymceai-multi-editor.adoc b/modules/ROOT/pages/tinymceai-multi-editor.adoc index 9de6b40e87..50ed50505d 100644 --- a/modules/ROOT/pages/tinymceai-multi-editor.adoc +++ b/modules/ROOT/pages/tinymceai-multi-editor.adoc @@ -13,7 +13,7 @@ Multi-editor mode groups several {productname} editors on one page, such as the [[demo]] == Demo -The demo below groups the three sections of a hiring pack, and the shared Chat sidebar opens when the demo loads. Select a suggested action, or run a review across all three editors. +The demo below groups the two sections of a hiring pack. The group uses xref:tinymceai.adoc#decoupled-mode[decoupled mode], so AI Chat and AI Review open in a panel next to the editors, and AI Chat opens when the demo loads. Select a suggested action, or run a review across both editors. liveDemo::tinymceai-multi-editor[] @@ -27,6 +27,8 @@ include::partial$misc/admon-inline-not-supported.adoc[] The first editor of the group to be created hosts the shared Chat sidebar and Review sidebar. The Chat and Review toolbar buttons and menu items in every other editor of the group open, close, and focus that shared sidebar. +In xref:tinymceai.adoc#decoupled-mode[decoupled mode], the first editor of the group hosts AI Chat and AI Review in the element set by its xref:tinymceai.adoc#tinymceai_decoupled_container[`+tinymceai_decoupled_container+`] value. The Chat and Review toolbar buttons and menu items in every editor of the group open and close AI Chat and AI Review in that element, and the keyboard shortcuts in every editor open them. + [[chat]] === Chat @@ -69,16 +71,18 @@ While the {pluginname} plugin previews changes from Chat or Quick Actions, each [[discarding-suggestions]] === Discarding pending suggestions -When any editor in the group has pending suggestions, the {pluginname} plugin asks for confirmation before it discards them and starts a different AI task. For example, the confirmation dialog appears when the user switches between the Chat sidebar and the Review sidebar, or runs a Quick Action while a review has pending suggestions. +With the floating sidebar, when any editor in the group has pending suggestions, the {pluginname} plugin asks for confirmation before it discards them and starts a different AI task. For example, the confirmation dialog appears when the user switches between the Chat sidebar and the Review sidebar, or runs a Quick Action while a review has pending suggestions. If the user confirms, the plugin discards the suggestions in every editor of the group, resets the changes already applied, and returns each editor to normal editing. If the user cancels, the plugin keeps every preview and pending suggestion. +In xref:tinymceai.adoc#decoupled-mode[decoupled mode], the confirmation dialog does not appear. When the user switches between AI Chat and AI Review, the plugin discards the pending suggestions without asking. + [[integration]] == Integration To group editors, load the `+tinymceai+` plugin in each editor and set the same xref:tinymceai.adoc#tinymceai_group[`+tinymceai_group+`] value on each editor in the group. Give each editor a unique xref:tinymceai.adoc#tinymceai_document_name[`+tinymceai_document_name+`] value, and optionally a xref:tinymceai.adoc#tinymceai_document_description[`+tinymceai_document_description+`] value that describes the content to the AI. -Multi-editor mode is supported with the floating sidebar. Set xref:tinymceai.adoc#tinymceai_sidebar_type[`+tinymceai_sidebar_type+`] to `+'floating'+` for every editor in the group. +The floating sidebar and xref:tinymceai.adoc#decoupled-mode[decoupled mode] both support multi-editor mode. For the floating sidebar, set xref:tinymceai.adoc#tinymceai_sidebar_type[`+tinymceai_sidebar_type+`] to `+'floating'+` for every editor in the group. For decoupled mode, see xref:#decoupled-mode-group[Grouped editors in decoupled mode]. Use the same {pluginname} configuration for every editor in a group, for example by sharing a settings object between the `+tinymce.init+` calls: @@ -114,10 +118,57 @@ Grouped editors must be on the same page and use the same `+tinymce+` instance. For information about installing the plugin and enabling AI features, see xref:tinymceai.adoc[Plugin Reference]. +[[decoupled-mode-group]] +=== Grouped editors in decoupled mode + +include::partial$misc/admon-requires-8.11v.adoc[] + +To use xref:tinymceai.adoc#decoupled-mode[decoupled mode] with a group, add one element for the group to the page and set xref:tinymceai.adoc#tinymceai_decoupled_container[`+tinymceai_decoupled_container+`] to a CSS selector that matches it. The plugin uses the value set on the first editor created in the group, so the option can go in the shared settings object. To open AI Chat or AI Review when the page loads, set xref:tinymceai.adoc#tinymceai_decoupled_show[`+tinymceai_decoupled_show+`]. + +[source,html] +---- +
+
+ + +
+
+
+---- + +[source,js] +---- +const sharedSettings = { + plugins: 'tinymceai', + toolbar: 'tinymceai-chat tinymceai-quickactions tinymceai-review', + tinymceai_group: 'article', + tinymceai_decoupled_container: '#ai-panel', // change this value according to the HTML + tinymceai_decoupled_show: 'tinymceai-chat', + // Required for authentication + tinymceai_token_provider: () => { + return fetch('/api/token').then(r => r.text()).then(token => ({ token })); + } +}; + +tinymce.init({ + ...sharedSettings, + selector: 'textarea#introduction', // change this value according to the HTML + tinymceai_document_name: 'Introduction' +}); + +tinymce.init({ + ...sharedSettings, + selector: 'textarea#body', // change this value according to the HTML + tinymceai_document_name: 'Body' +}); +---- + +To open or close AI Chat and AI Review programmatically, see xref:tinymceai.adoc#tinymceai-toggling-apps-decoupled[`+TinyMCEAIToggleApp+`]. + [[multiple-groups]] === Multiple groups on one page -A page can contain several independent groups, each with a different xref:tinymceai.adoc#tinymceai_group[`+tinymceai_group+`] value. Each group has its own shared sidebar, and an editor in one group never receives the content of an editor in another group. For a configuration with two groups, see the xref:tinymceai.adoc#tinymceai_group[two-group example]. +A page can contain several independent groups, each with a different xref:tinymceai.adoc#tinymceai_group[`+tinymceai_group+`] value. Each group has its own shared sidebar, and an editor in one group never receives the content of an editor in another group. In decoupled mode, give each group its own element and set a different xref:tinymceai.adoc#tinymceai_decoupled_container[`+tinymceai_decoupled_container+`] value for each group. For a configuration with two groups, see the xref:tinymceai.adoc#tinymceai_group[two-group example]. [[configuration]] == Configuration diff --git a/modules/ROOT/pages/tinymceai.adoc b/modules/ROOT/pages/tinymceai.adoc index 808f180541..98c4834be2 100644 --- a/modules/ROOT/pages/tinymceai.adoc +++ b/modules/ROOT/pages/tinymceai.adoc @@ -156,6 +156,52 @@ tinymce.init({ }); ---- +[[decoupled-mode]] +== Decoupled mode + +include::partial$misc/admon-requires-8.11v.adoc[] + +By default, AI Chat and AI Review open in an editor sidebar. In decoupled mode, the two apps, AI Chat and AI Review, render inside an element on the page instead, outside the editor. Use decoupled mode to place the AI interface in a panel or layout that the application provides. + +To turn on decoupled mode, set xref:#tinymceai_decoupled_container[`+tinymceai_decoupled_container+`] to a CSS selector that matches one element on the page, and give that element a width and a height. The plugin does not add a border around AI Chat and AI Review in decoupled mode. To separate the apps from the rest of the page, add a border to the element. To open AI Chat or AI Review when the editor initializes, set xref:#tinymceai_decoupled_show[`+tinymceai_decoupled_show+`]. + +[source,html] +---- +
+
+ +
+
+
+---- + +[source,js] +---- +tinymce.init({ + selector: 'textarea#editor', // change this value according to the HTML + plugins: 'tinymceai', + toolbar: 'tinymceai-chat tinymceai-quickactions tinymceai-review', + tinymceai_decoupled_container: '#ai-panel', // change this value according to the HTML + tinymceai_decoupled_show: 'tinymceai-chat', + // Required for authentication + tinymceai_token_provider: () => { + return fetch('/api/token').then(r => r.json()); + } +}); +---- + +In decoupled mode: + +* The `+tinymceai-chat+` and `+tinymceai-review+` toolbar buttons and menu items open and close AI Chat and AI Review in the element. +* The xref:#keyboard-shortcuts[keyboard shortcuts], pressed in the editor, open the matching app or move focus to it when it is already open. Pressed inside an open app, the shortcut for that app closes it and returns focus to the editor. +* The element shows one app at a time. When one app opens, the plugin hides the other. +* The plugin keeps the state of a closed app, so reopening AI Chat shows the same conversation. +* When the user switches from one app to the other, the plugin stops any request in progress in the hidden app and discards any pending AI suggestions. +* Chat and review commands, such as `+TinyMCEAIChatPrompt+` and `+TinyMCEAIReviewProofread+`, open the matching app in the element. +* Use the xref:#tinymceai-toggling-apps-decoupled[`+TinyMCEAIToggleApp+`] command and the xref:#tinymceai_decoupled_show[`+tinymceai_decoupled_show+`] option in place of the core `+ToggleSidebar+` command and the xref:customsidebar.adoc#sidebar_show[`+sidebar_show+`] option. + +For a xref:tinymceai-multi-editor.adoc[multi-editor group] in decoupled mode, see xref:tinymceai-multi-editor.adoc#decoupled-mode-group[Grouped editors in decoupled mode]. + [[commands]] == Commands diff --git a/modules/ROOT/partials/commands/formatpainter-cmds.adoc b/modules/ROOT/partials/commands/formatpainter-cmds.adoc index 757cf0a815..6c7e094d65 100644 --- a/modules/ROOT/partials/commands/formatpainter-cmds.adoc +++ b/modules/ROOT/partials/commands/formatpainter-cmds.adoc @@ -4,6 +4,7 @@ |mceRetrieveFormats |Retrieves the formats from the current selection. |mcePaintFormats |Applies the formats retrieved using `+mceRetrieveFormats+` to the current selection. |mceToggleFormatPainter |Toggles the Format Painter. +|mceToggleStickyFormatPainter |Retrieves the formats from the current selection and turns on sticky mode, which keeps the Format Painter active to apply the formats to each selection. To turn off sticky mode, run `+mceToggleFormatPainter+`. Requires {productname} 8.11 or newer. |=== .Examples @@ -12,4 +13,5 @@ tinymce.activeEditor.execCommand('mceRetrieveFormats'); tinymce.activeEditor.execCommand('mcePaintFormats'); tinymce.activeEditor.execCommand('mceToggleFormatPainter'); +tinymce.activeEditor.execCommand('mceToggleStickyFormatPainter'); ---- diff --git a/modules/ROOT/partials/commands/tinymceai-cmds.adoc b/modules/ROOT/partials/commands/tinymceai-cmds.adoc index fb7d0e08c4..d8bfcfa03f 100644 --- a/modules/ROOT/partials/commands/tinymceai-cmds.adoc +++ b/modules/ROOT/partials/commands/tinymceai-cmds.adoc @@ -19,7 +19,59 @@ tinymce.activeEditor.execCommand('ToggleSidebar', false, 'tinymceai-chat'); tinymce.activeEditor.execCommand('ToggleSidebar', false, 'tinymceai-review'); ---- -NOTE: These commands work regardless of xref:tinymceai.adoc#tinymceai_sidebar_type[`tinymceai_sidebar_type`] (`+'static'+` or `+'floating'+`). The `+ToggleSidebar+` event and `+queryCommandValue('ToggleSidebar')+` also behave the same for both sidebar types. +NOTE: These commands work regardless of xref:tinymceai.adoc#tinymceai_sidebar_type[`tinymceai_sidebar_type`] (`+'static'+` or `+'floating'+`). The `+ToggleSidebar+` event and `+queryCommandValue('ToggleSidebar')+` also behave the same for both sidebar types. In xref:tinymceai.adoc#decoupled-mode[decoupled mode], use the <> command instead. + +[[tinymceai-toggling-apps-decoupled]] +== Toggling AI Chat and AI Review in decoupled mode + +include::partial$misc/admon-requires-8.11v.adoc[] + +In xref:tinymceai.adoc#decoupled-mode[decoupled mode], the `+TinyMCEAIToggleApp+` command opens or closes AI Chat or AI Review in the element set by xref:tinymceai.adoc#tinymceai_decoupled_container[`+tinymceai_decoupled_container+`]. The plugin registers this command only in decoupled mode. Pass the app identifier as the third argument: + +[cols="1,3",options="header"] +|=== +|Value |Effect +|`+'tinymceai-chat'+` |Opens AI Chat, or closes it when it is already open. +|`+'tinymceai-review'+` |Opens AI Review, or closes it when it is already open. +|Any other value |Does nothing. The value is case sensitive, so a missing value, an empty string, an unknown identifier, or different capitalization has no effect. +|=== + +`+queryCommandValue('TinyMCEAIToggleApp')+` returns the identifier of the open app, or an empty string when neither app is open. It is the decoupled mode equivalent of `+queryCommandValue('ToggleSidebar')+`. + +Each time `+TinyMCEAIToggleApp+` runs with a valid value, the editor fires a `+TinyMCEAIToggleApp+` event, whether the command opens, closes, or switches an app. The event has no data. To read the new state, call `+queryCommandValue('TinyMCEAIToggleApp')+` in the event handler. The editor does not fire the event for the app opened by xref:tinymceai.adoc#tinymceai_decoupled_show[`+tinymceai_decoupled_show+`]. + +In a xref:tinymceai-multi-editor.adoc[multi-editor group], the plugin registers the command and fires the event on the first editor created in the group. Run the command, query the value, and listen for the event on that editor. + +.Examples +[source,js] +---- +// Open AI Review, or close it if it is already open +tinymce.activeEditor.execCommand('TinyMCEAIToggleApp', false, 'tinymceai-review'); + +// Returns 'tinymceai-chat', 'tinymceai-review', or '' when neither app is open +tinymce.activeEditor.queryCommandValue('TinyMCEAIToggleApp'); +---- + +.Example: showing an application panel only while an app is open +[source,js] +---- +tinymce.init({ + selector: 'textarea', // change this value according to the HTML + plugins: 'tinymceai', + toolbar: 'tinymceai-chat tinymceai-quickactions tinymceai-review', + tinymceai_decoupled_container: '#ai-panel', // change this value according to the HTML + // Required for authentication + tinymceai_token_provider: () => { + return fetch('/api/token').then(r => r.json()); + }, + setup: (editor) => { + editor.on('TinyMCEAIToggleApp', () => { + const openApp = editor.queryCommandValue('TinyMCEAIToggleApp'); + document.querySelector('#ai-panel').classList.toggle('is-open', openApp !== ''); + }); + } +}); +---- [[tinymceai-plugin-commands]] == TinyMCE AI plugin commands @@ -57,6 +109,7 @@ The xref:tinymceai.adoc[`tinymceai`] plugin registers the following editor comma |`+TinyMCEAIReviewToneConfident+` | |Runs the **Adjust tone and style** review with the **Confident** tone. |`+TinyMCEAIReviewToneProfessional+` | |Runs the **Adjust tone and style** review with the **Professional** tone. |`+TinyMCEAIReviewCustom+` |`+String+`, `+{ prompt, model, name }+`, or `+{ id, value }+` |Runs a review from a custom prompt, or runs an xref:tinymceai.adoc#integrator-defined-reviews[integrator-defined review] by identifier. See <>. +|`+TinyMCEAIDiscardSuggestions+` | |Discards the AI suggestions previewed in the editor without applying them. See <>. |=== Each `+TinyMCEAIReview…+` command opens the Review sidebar and runs the review, with the same result as selecting that review in the sidebar. Running a review command while another review is in progress stops the earlier review and starts the requested one. @@ -94,6 +147,22 @@ tinymce.activeEditor.execCommand('TinyMCEAIReviewProofread'); tinymce.activeEditor.execCommand('TinyMCEAIReviewToneProfessional'); ---- +[[tinymceai-preview-state]] +=== Checking for an open preview + +include::partial$misc/admon-requires-8.11v.adoc[] + +`+queryCommandState('TinyMCEAIPreview')+` returns `+true+` when the editor shows a preview of AI suggestions that the user has not yet resolved, and `+false+` otherwise. A preview that is still loading does not count, and the state returns to `+false+` after the user applies or discards the suggestions. + +In a xref:tinymceai-multi-editor.adoc[multi-editor group], each editor reports only its own preview. To check whether any editor in a group shows a preview, query each editor in the group. + +[source,js] +---- +if (tinymce.activeEditor.queryCommandState('TinyMCEAIPreview')) { + console.log('The editor has AI suggestions to resolve.'); +} +---- + [[tinymceai-review-custom-values]] === Values for `+TinyMCEAIReviewCustom+` @@ -135,3 +204,24 @@ tinymce.activeEditor.execCommand('TinyMCEAIReviewCustom', false, { ---- When the value does not match any of these forms, {productname} logs an error to the browser console and runs no review. This also applies when the prompt or identifier is blank, when no integrator-defined review matches the identifier, when a `+list+` review value is not one of its options, and when an `+input+` review is run without a value. + +[[tinymceai-discard-suggestions]] +=== Discarding previewed suggestions + +include::partial$misc/admon-requires-8.11v.adoc[] + +The `+TinyMCEAIDiscardSuggestions+` command discards the AI suggestions previewed in the editor, such as changes proposed in Chat or Review, without applying any of them. The editor keeps the content it had before the preview. If the editor mode changed while the preview was open, the command restores the mode the editor had before the preview. The command takes no third argument. + +In a xref:tinymceai-multi-editor.adoc[multi-editor group], the command discards only the suggestions of the editor it runs on. The previews in the other editors of the group stay open, and the Review sidebar keeps the suggestions from those previews. To discard the suggestions of the whole group, run the command on each editor in the group. + +.Example: discarding the suggestions previewed in every editor of a group +[source,js] +---- +tinymce.get() + .filter((editor) => editor.options.get('tinymceai_group') === 'my-group') + .forEach((editor) => { + if (editor.queryCommandState('TinyMCEAIPreview')) { + editor.execCommand('TinyMCEAIDiscardSuggestions'); + } + }); +---- diff --git a/modules/ROOT/partials/configuration/table_appearance_options.adoc b/modules/ROOT/partials/configuration/table_appearance_options.adoc index a20e00f293..2571cc2b56 100644 --- a/modules/ROOT/partials/configuration/table_appearance_options.adoc +++ b/modules/ROOT/partials/configuration/table_appearance_options.adoc @@ -1,13 +1,24 @@ [[table_appearance_options]] == `+table_appearance_options+` -This option allows you to disable some of the options available to a user when inserting or editing a table. When set to `+false+` the following fields will not appear: Cell spacing, Cell padding, Border and Caption. +This option controls which appearance fields the Table Properties dialog shows when a user inserts or edits a table. The appearance fields are **Cell spacing**, **Cell padding**, **Border width**, and **Caption**. When the option is set to `+false+`, none of these fields appear. When the option is set to `+true+`, all of them appear. -*Type:* `+Boolean+` +To hide individual fields, set the option to an object instead. A field set to `+false+` is hidden. A field set to `+true+` or left out is shown, so an empty object shows all four fields. + +NOTE: The object form of this option is only available in {productname} 8.11 and later. Earlier versions accept only `+true+` or `+false+`. + +*Type:* `+Boolean+` or `+Object+` *Default value:* `+true+` -*Possible values:* `+true+`, `+false+` +*Possible values:* `+true+`, `+false+`, or an object with any of the following `+Boolean+` properties: + +* `+cellspacing+`: the **Cell spacing** field. +* `+cellpadding+`: the **Cell padding** field. +* `+borderwidth+`: the **Border width** field. +* `+caption+`: the **Caption** field. + +If any of these properties has a value that is not a `+Boolean+`, {productname} logs a warning to the browser console and ignores the whole object. All four fields then appear, as with the default value `+true+`. Properties other than these four have no effect. === Example: using `+table_appearance_options+` @@ -20,3 +31,18 @@ tinymce.init({ table_appearance_options: false }); ---- + +=== Example: hiding individual fields + +[source,js] +---- +tinymce.init({ + selector: 'textarea', // change this value according to your HTML + plugins: 'table', + toolbar: 'table', + table_appearance_options: { + cellspacing: false, + caption: false + } +}); +---- diff --git a/modules/ROOT/partials/configuration/tinymceai_options.adoc b/modules/ROOT/partials/configuration/tinymceai_options.adoc index 3371db92f3..4850e5e1be 100644 --- a/modules/ROOT/partials/configuration/tinymceai_options.adoc +++ b/modules/ROOT/partials/configuration/tinymceai_options.adoc @@ -152,6 +152,74 @@ tinymce.init({ Changing this property dynamically (after the editor has been initialized) is not supported and can result in unpredictable behavior. ==== +[[tinymceai_decoupled_container]] +=== `+tinymceai_decoupled_container+` + +include::partial$misc/admon-requires-8.11v.adoc[] + +Turns on xref:tinymceai.adoc#decoupled-mode[decoupled mode]. The value is a CSS selector that must match exactly one element on the page. AI Chat and AI Review render inside that element instead of in an editor sidebar. + +When this option is set, the plugin registers no AI sidebars and ignores the xref:tinymceai.adoc#tinymceai_sidebar_type[`+tinymceai_sidebar_type+`] option. When the selector matches no element, matches more than one element, or is not a valid CSS selector, {productname} logs a warning to the browser console and the plugin does not render AI Chat or AI Review. + +The element must be on the page when the editor initializes. When the editor is removed, the plugin removes AI Chat and AI Review from the element, and the element stays on the page. + +For grouped editors, see xref:tinymceai-multi-editor.adoc#decoupled-mode-group[Grouped editors in decoupled mode]. + +*Type:* `+String+` + +*Default value:* `+undefined+` + +.Example +[source,js] +---- +tinymce.init({ + selector: 'textarea', // change this value according to the HTML + plugins: 'tinymceai', + toolbar: 'tinymceai-chat tinymceai-quickactions tinymceai-review', + tinymceai_decoupled_container: '#ai-panel', // change this value according to the HTML + // Required for authentication + tinymceai_token_provider: () => { + return fetch('/api/token').then(r => r.json()); + } +}); +---- + +[NOTE] +==== +Set this option in the initial configuration of the editor. Changing this option after the editor initializes is not supported. +==== + +[[tinymceai_decoupled_show]] +=== `+tinymceai_decoupled_show+` + +include::partial$misc/admon-requires-8.11v.adoc[] + +Opens AI Chat or AI Review in the element set by xref:tinymceai.adoc#tinymceai_decoupled_container[`+tinymceai_decoupled_container+`] when the editor initializes. This option is the decoupled mode equivalent of the core xref:customsidebar.adoc#sidebar_show[`+sidebar_show+`] option. + +The value is case insensitive. When the value is not valid, {productname} logs a warning to the browser console and the plugin opens neither app. The plugin ignores this option when `+tinymceai_decoupled_container+` is not set. + +*Type:* `+String+` + +*Possible values:* `+'tinymceai-chat'+`, `+'tinymceai-review'+` + +*Default value:* `+undefined+` + +.Example +[source,js] +---- +tinymce.init({ + selector: 'textarea', // change this value according to the HTML + plugins: 'tinymceai', + toolbar: 'tinymceai-chat tinymceai-quickactions tinymceai-review', + tinymceai_decoupled_container: '#ai-panel', // change this value according to the HTML + tinymceai_decoupled_show: 'tinymceai-chat', + // Required for authentication + tinymceai_token_provider: () => { + return fetch('/api/token').then(r => r.json()); + } +}); +---- + [[tinymceai_default_model]] === `+tinymceai_default_model+` @@ -370,9 +438,9 @@ Each item in the array is one of the following: * A `+String+`, or an object with a `+text+` property (`+{ text: 'string' }+`), shown as descriptive text. * An action object, shown as a clickable button, with the following properties: ** `+title+` (`+String+`): The label shown on the button. -** `+command+` (`+String+`): The editor command run when the button is selected. The command runs without moving focus into the editor, so the editor scroll position is preserved. This can be a Quick Action or Chat command, the core `+ToggleSidebar+` command, or any other registered editor command, such as `+Bold+`. For the AI command names, see xref:editor-command-identifiers.adoc#tinymceai[TinyMCE AI]. -** `+value+` (optional): The argument passed to the command. The accepted value matches the command, for example a language label for `+TinyMCEAIQuickActionTranslate+`, a `+{ prompt, displayedPrompt }+` object for `+TinyMCEAIChatPrompt+`, or a sidebar name such as `+'tinymceai-review'+` for `+ToggleSidebar+`. -** `+icon+` (optional `+String+`): The name of the icon shown on the button, using any editor icon identifier. When omitted, an icon is selected automatically based on the command. +** `+command+` (`+String+`): The editor command run when the button is selected. The command runs without moving focus into the editor, so the editor scroll position is preserved. This can be a Quick Action or Chat command, the core `+ToggleSidebar+` command (or `+TinyMCEAIToggleApp+` in xref:tinymceai.adoc#decoupled-mode[decoupled mode]), or any other registered editor command, such as `+Bold+`. For the AI command names, see xref:editor-command-identifiers.adoc#tinymceai[TinyMCE AI]. +** `+value+` (optional): The argument passed to the command. The accepted value matches the command, for example a language label for `+TinyMCEAIQuickActionTranslate+`, a `+{ prompt, displayedPrompt }+` object for `+TinyMCEAIChatPrompt+`, or an identifier such as `+'tinymceai-review'+` for `+ToggleSidebar+` or `+TinyMCEAIToggleApp+`. +** `+icon+` (optional `+String+`): The name of the icon shown on the button, using any editor icon identifier. When omitted, an icon is selected automatically based on the command. For a `+ToggleSidebar+` action, the automatic icon matches the sidebar. For a `+TinyMCEAIToggleApp+` action, set `+icon+`, for example to `+'ai-review'+`, because the automatic icon does not match the app. Text items and action buttons can be interleaved to group related actions under short headings. @@ -902,7 +970,7 @@ include::partial$misc/admon-requires-8.10v.adoc[] [[tinymceai_group]] === `+tinymceai_group+` -Adds the editor to a named group. Editors on the same page with the same `+tinymceai_group+` value share one Chat sidebar and one Review sidebar. In a group, Chat, Review, and Quick Actions work across the content of every editor. The editor created first in the group hosts the shared sidebars. +Adds the editor to a named group. Editors on the same page with the same `+tinymceai_group+` value share one Chat sidebar and one Review sidebar. In a group, Chat, Review, and Quick Actions work across the content of every editor. The editor created first in the group hosts the shared sidebars, or the shared AI Chat and AI Review in xref:tinymceai.adoc#decoupled-mode[decoupled mode]. The plugin uses the group name only to match editors, and never shows the name to users or sends it to the AI service. A page can contain several independent groups, each with a different name. Editors in one group never receive content from another group. diff --git a/modules/ROOT/partials/misc/admon-requires-8.11v.adoc b/modules/ROOT/partials/misc/admon-requires-8.11v.adoc new file mode 100644 index 0000000000..82c489b10e --- /dev/null +++ b/modules/ROOT/partials/misc/admon-requires-8.11v.adoc @@ -0,0 +1 @@ +NOTE: This feature is only available for {productname} 8.11 and later. diff --git a/modules/ROOT/partials/misc/supported-versions.adoc b/modules/ROOT/partials/misc/supported-versions.adoc index ae75652a6b..37d4fdec40 100644 --- a/modules/ROOT/partials/misc/supported-versions.adoc +++ b/modules/ROOT/partials/misc/supported-versions.adoc @@ -6,7 +6,7 @@ Supported versions of {productname}: [cols="^,^,^",options="header"] |=== |Version |Release Date |End of Premium Support -|8.11 | | +|8.11 |2026-11-25 |2028-05-25 |8.10 |2026-10-14 |2028-04-14 |8.9 |2026-08-31 |2028-03-01 |8.8 |2026-07-15 |2028-01-15