From ffbf4b4f3b1daea8635b5129270bb0a210f9b2c9 Mon Sep 17 00:00:00 2001 From: yogeshbhutkar Date: Mon, 3 Aug 2026 10:40:05 +0530 Subject: [PATCH] Fix inline HTML preservation in content resizing --- .../content-resizing/components/ContentResizingToolbar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/experiments/content-resizing/components/ContentResizingToolbar.tsx b/src/experiments/content-resizing/components/ContentResizingToolbar.tsx index c75929292..bd86cd0e6 100644 --- a/src/experiments/content-resizing/components/ContentResizingToolbar.tsx +++ b/src/experiments/content-resizing/components/ContentResizingToolbar.tsx @@ -30,7 +30,7 @@ import { store as editorStore } from '@wordpress/editor'; * Internal dependencies */ import { runAbility } from '../../../utils/run-ability'; -import { getBlockText } from '../../../utils/blocks'; +import { getBlockHTML } from '../../../utils/blocks'; import type { ContentResizingAction, ContentResizingData } from '../types'; import { ICON_SHORTEN, ICON_EXPAND, ICON_REPHRASE } from '../icons'; import { ensureProvider } from '../../../utils/provider-status'; @@ -90,7 +90,7 @@ export default function ContentResizingToolbar( { /* eslint-disable dot-notation */ const block = select( blockEditorStore )[ 'getBlock' ]( clientId ); return { - blockContent: block ? getBlockText( block ) : '', + blockContent: block ? getBlockHTML( block ) : '', isResized: ( block?.attributes[ 'aiResized' ] as boolean ) ?? false, postId: select( editorStore )[ 'getCurrentPostId' ]() as number,