Skip to content

Commit cb5e74e

Browse files
DOC-3151: The mceInsertContent command could delete the parent block element when an anchor was selected. (#3723)
* DOC-3151: The mceInsertContent command could delete the parent block element when an anchor was selected. * Update modules/ROOT/pages/7.9.0-release-notes.adoc Co-authored-by: CODE:AG <[email protected]> * Update modules/ROOT/pages/7.9.0-release-notes.adoc Co-authored-by: CODE:AG <[email protected]> --------- Co-authored-by: CODE:AG <[email protected]>
1 parent f88cde7 commit cb5e74e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

modules/ROOT/pages/7.9.0-release-notes.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,15 @@ In previous versions of {productname}, the "lock aspect ratio" button in the `Co
232232

233233
{productname} {release-version} also includes the following bug fix<es>:
234234

235+
=== The `mceInsertContent` command could delete the parent block element when an anchor was selected.
236+
// #TINY-11953
237+
238+
The {productname} `mceInsertContent` command could inadvertently remove the parent block element when an anchor (`<a>`) tag was selected.
239+
240+
In scenarios where an anchor element was fully selected, the surrounding block-level parent tag, such as `<p>` or `<div>`, 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.
241+
242+
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.
243+
235244
=== Japanese keyboard could insert content while the editor was in `readonly` mode
236245
// #TINY-11363
237246

0 commit comments

Comments
 (0)