From ba048c0fb42c97443b8b90982bd28f9e7b65c46b Mon Sep 17 00:00:00 2001 From: Karl Kemister-Sheppard Date: Mon, 12 May 2025 21:35:38 +1000 Subject: [PATCH 1/3] DOC-3151: The mceInsertContent command could delete the parent block element when an anchor was selected. --- modules/ROOT/pages/7.9.0-release-notes.adoc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/ROOT/pages/7.9.0-release-notes.adoc b/modules/ROOT/pages/7.9.0-release-notes.adoc index 301a1191a9..ec2fd3a86a 100644 --- a/modules/ROOT/pages/7.9.0-release-notes.adoc +++ b/modules/ROOT/pages/7.9.0-release-notes.adoc @@ -232,6 +232,15 @@ In previous versions of {productname}, the "lock aspect ratio" button in the `Co {productname} {release-version} also includes the following bug fix: +=== The `mceInsertContent` command could delete the parent block element when an anchor was selected. +// #TINY-11953 + +The {productname} `mceInsertContent` command could inadvertently remove the parent block element when an anchor (``) tag was selected. + +In senarios such as when an anchor element was fully selected, the surrounding block-level parent tag, such as `

` or `

`, could be incorrectly removed, causing unexpected content structure changes. This issue primarily affected Chrome users, as it did not reproduce consistently in Safari or Firefox. + +The issue has been resolved in {release-version}. The `mceInsertContent` command now properly retains the parent block elements when inserting content into a selected anchor element. + === Japanese keyboard could insert content while the editor was in `readonly` mode // #TINY-11363 From 4d33477b817ab86e40b1423e1cec893d584500ec Mon Sep 17 00:00:00 2001 From: Karl Kemister-Sheppard Date: Tue, 13 May 2025 10:11:48 +1000 Subject: [PATCH 2/3] Update modules/ROOT/pages/7.9.0-release-notes.adoc Co-authored-by: CODE:AG <57781325+abhinavgandham@users.noreply.github.com> --- modules/ROOT/pages/7.9.0-release-notes.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/pages/7.9.0-release-notes.adoc b/modules/ROOT/pages/7.9.0-release-notes.adoc index ec2fd3a86a..f81fd45da5 100644 --- a/modules/ROOT/pages/7.9.0-release-notes.adoc +++ b/modules/ROOT/pages/7.9.0-release-notes.adoc @@ -237,7 +237,7 @@ In previous versions of {productname}, the "lock aspect ratio" button in the `Co The {productname} `mceInsertContent` command could inadvertently remove the parent block element when an anchor (``) tag was selected. -In senarios such as when an anchor element was fully selected, the surrounding block-level parent tag, such as `

` or `

`, could be incorrectly removed, causing unexpected content structure changes. This issue primarily affected Chrome users, as it did not reproduce consistently in Safari or Firefox. +In scenarios where an anchor element was fully selected, the surrounding block-level parent tag, such as `

` or `

`, could be incorrectly removed, leading to unexpected changes in the content structure. This issue primarily affected Chrome users and did not reproduce consistently in Safari or Firefox. The issue has been resolved in {release-version}. The `mceInsertContent` command now properly retains the parent block elements when inserting content into a selected anchor element. From ee01097b10f03c7beb8cd4eab215a9d0afa03fa4 Mon Sep 17 00:00:00 2001 From: Karl Kemister-Sheppard Date: Tue, 13 May 2025 10:11:55 +1000 Subject: [PATCH 3/3] Update modules/ROOT/pages/7.9.0-release-notes.adoc Co-authored-by: CODE:AG <57781325+abhinavgandham@users.noreply.github.com> --- modules/ROOT/pages/7.9.0-release-notes.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/pages/7.9.0-release-notes.adoc b/modules/ROOT/pages/7.9.0-release-notes.adoc index f81fd45da5..71b45378bb 100644 --- a/modules/ROOT/pages/7.9.0-release-notes.adoc +++ b/modules/ROOT/pages/7.9.0-release-notes.adoc @@ -239,7 +239,7 @@ The {productname} `mceInsertContent` command could inadvertently remove the pare In scenarios where an anchor element was fully selected, the surrounding block-level parent tag, such as `

` or `

`, could be incorrectly removed, leading to unexpected changes in the content structure. This issue primarily affected Chrome users and did not reproduce consistently in Safari or Firefox. -The issue has been resolved in {release-version}. The `mceInsertContent` command now properly retains the parent block elements when inserting content into a selected anchor element. +This issue has been resolved in {release-version}. The `mceInsertContent` command now properly retains the parent block elements when inserting content into a selected anchor element. === Japanese keyboard could insert content while the editor was in `readonly` mode // #TINY-11363