From c7720ea947289b7e97a6cea2eedcdcd19ad72cba Mon Sep 17 00:00:00 2001 From: abhinavgandham Date: Tue, 27 May 2025 10:31:14 +1000 Subject: [PATCH] DOC-3147: Attempting to add a newline directly after a element such as an image would cause an error. --- modules/ROOT/pages/8.0-release-notes.adoc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/ROOT/pages/8.0-release-notes.adoc b/modules/ROOT/pages/8.0-release-notes.adoc index 7c62f25b54..1f560a8873 100644 --- a/modules/ROOT/pages/8.0-release-notes.adoc +++ b/modules/ROOT/pages/8.0-release-notes.adoc @@ -143,10 +143,12 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a {productname} {release-version} also includes the following bug fix: -// === -// #TINY-vwxyz1 +=== Attempting to add a newline directly after a `block` element such as an image would cause an error. +// #TINY-12045 -// CCFR here. +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 `
` 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. + +This issue has been resolved in {productname} {release-version}. The selection logic has been updated to correctly identify and handle content within `
` elements such that it does not try to insert content within itself. As a result, pressing `Enter` after an image inside a `
` element no longer triggers errors or causes unintended behavior. [[security-fixes]]