From a5914a6caab5f835ef04d74e8030219cb2530be8 Mon Sep 17 00:00:00 2001 From: Ella <4710635+ellatrix@users.noreply.github.com> Date: Fri, 30 Aug 2024 13:41:19 +0200 Subject: [PATCH] Paste: fix image paste from Google Forms (#64502) --- packages/blocks/src/api/raw-handling/figure-content-reducer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/blocks/src/api/raw-handling/figure-content-reducer.js b/packages/blocks/src/api/raw-handling/figure-content-reducer.js index 4dfb24f2c97816..4c8c1a8dd736bb 100644 --- a/packages/blocks/src/api/raw-handling/figure-content-reducer.js +++ b/packages/blocks/src/api/raw-handling/figure-content-reducer.js @@ -95,7 +95,7 @@ export default function figureContentReducer( node, doc, schema ) { ) { wrapFigureContent( nodeToInsert, wrapper ); } - } else if ( nodeToInsert.parentNode.nodeName === 'BODY' ) { + } else { wrapFigureContent( nodeToInsert ); } }