Skip to content

Commit 35d40a5

Browse files
DOC-3147: Attempting to add a newline directly after a element such as an image would cause an error. (#3737)
Co-authored-by: Karl Kemister-Sheppard <[email protected]>
1 parent c9d4fa2 commit 35d40a5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,13 @@ To improve API clarity and maintain a well-defined interface, the `documentBaseU
212212

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

215+
=== Attempting to add a newline directly after a `block` element such as an image would cause an error.
216+
// #TINY-12045
217+
218+
In previous versions of {productname}, the content selection logic incorrectly assumed that the target element resided within a text node. In reality, it was placed directly inside a `<div>` element. This mismatch led to a scenario where the selected content was mistakenly reinserted into itself, resulting in errors when pressing `Enter` immediately after an image and introducing a risk of data loss.
219+
220+
This issue has been resolved in {productname} {release-version}. The selection logic has been updated to correctly identify and handle content within `<div>` elements such that it does not try to insert content within itself. As a result, pressing `Enter` after an image inside a `<div>` element no longer triggers errors or causes unintended behavior.
221+
215222
=== In inline mode, pressing the back button dismissed the context toolbar and moved focus from the selected image to the editor.
216223
// #TINY-12118
217224

0 commit comments

Comments
 (0)