From 2d8f117e0288ac8501a6e7a1327e81a0f1a141c2 Mon Sep 17 00:00:00 2001 From: Karl Kemister-Sheppard Date: Wed, 28 Oct 2026 08:36:25 +1000 Subject: [PATCH 1/3] TINYDOC-3673: 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. --- modules/ROOT/pages/8.10.1-release-notes.adoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/ROOT/pages/8.10.1-release-notes.adoc b/modules/ROOT/pages/8.10.1-release-notes.adoc index 9038252327..0aa83b909b 100644 --- a/modules/ROOT/pages/8.10.1-release-notes.adoc +++ b/modules/ROOT/pages/8.10.1-release-notes.adoc @@ -160,6 +160,13 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a // CCFR here. +=== 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 + +Previously, when the selection covered all of the content in a block and an inline format element wrapped that content, the xref:apis/tinymce.editor.adoc#insertContent[`+editor.insertContent()+`] API removed the formatting. For example, selecting all of the text in `+

I am bold

+` and inserting new text produced plain text instead of bold text. When the selection covered only part of the formatted text, the API kept the formatting, so the result depended on how much of the block the selection covered. + +In {productname} {release-version}, the `+editor.insertContent()+` API keeps the inline formatting that wraps the whole selection, including nested formats such as bold and italic together. When part of the selection has an additional format, such as one italic word inside bold text, the inserted content keeps only the format that wraps the whole selection. Inserting a block element, such as a paragraph, still replaces the content without the inline formatting. + [[security-fixes]] == Security fixes From 4ba6929eb936bcad4ae51e93df0772c89cde21e8 Mon Sep 17 00:00:00 2001 From: Karl Kemister-Sheppard Date: Wed, 28 Oct 2026 10:27:39 +1000 Subject: [PATCH 2/3] Update modules/ROOT/pages/8.10.1-release-notes.adoc Co-authored-by: tiny-ben-tran --- modules/ROOT/pages/8.10.1-release-notes.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/pages/8.10.1-release-notes.adoc b/modules/ROOT/pages/8.10.1-release-notes.adoc index 0aa83b909b..185a477381 100644 --- a/modules/ROOT/pages/8.10.1-release-notes.adoc +++ b/modules/ROOT/pages/8.10.1-release-notes.adoc @@ -163,7 +163,7 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a === 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 -Previously, when the selection covered all of the content in a block and an inline format element wrapped that content, the xref:apis/tinymce.editor.adoc#insertContent[`+editor.insertContent()+`] API removed the formatting. For example, selecting all of the text in `+

I am bold

+` and inserting new text produced plain text instead of bold text. When the selection covered only part of the formatted text, the API kept the formatting, so the result depended on how much of the block the selection covered. +Previously, when the selection covered all of the content in a block and an inline format element wrapped that content, the xref:apis/tinymce.editor.adoc#insertContent[`+editor.insertContent()+`] API removed the formatting. For example, selecting all of the text in `+

I am bold

+` and inserting new text using the API produced plain text instead of bold. In {productname} {release-version}, the `+editor.insertContent()+` API keeps the inline formatting that wraps the whole selection, including nested formats such as bold and italic together. When part of the selection has an additional format, such as one italic word inside bold text, the inserted content keeps only the format that wraps the whole selection. Inserting a block element, such as a paragraph, still replaces the content without the inline formatting. From 29633f998740c093b9ce0a3e5f30c39af2cdd9b5 Mon Sep 17 00:00:00 2001 From: Karl Kemister-Sheppard Date: Wed, 28 Oct 2026 10:27:46 +1000 Subject: [PATCH 3/3] Update modules/ROOT/pages/8.10.1-release-notes.adoc Co-authored-by: tiny-ben-tran --- modules/ROOT/pages/8.10.1-release-notes.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/pages/8.10.1-release-notes.adoc b/modules/ROOT/pages/8.10.1-release-notes.adoc index 185a477381..536a76d12b 100644 --- a/modules/ROOT/pages/8.10.1-release-notes.adoc +++ b/modules/ROOT/pages/8.10.1-release-notes.adoc @@ -165,7 +165,7 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a Previously, when the selection covered all of the content in a block and an inline format element wrapped that content, the xref:apis/tinymce.editor.adoc#insertContent[`+editor.insertContent()+`] API removed the formatting. For example, selecting all of the text in `+

I am bold

+` and inserting new text using the API produced plain text instead of bold. -In {productname} {release-version}, the `+editor.insertContent()+` API keeps the inline formatting that wraps the whole selection, including nested formats such as bold and italic together. When part of the selection has an additional format, such as one italic word inside bold text, the inserted content keeps only the format that wraps the whole selection. Inserting a block element, such as a paragraph, still replaces the content without the inline formatting. +In {productname} {release-version}, the `+editor.insertContent()+` API preserves the inline formatting that wraps the whole selection. [[security-fixes]]