From 3244f525bc824820e601b7c12523af473f355f5c Mon Sep 17 00:00:00 2001 From: Ella Date: Thu, 15 Aug 2024 10:31:06 +0200 Subject: [PATCH] Paste: fix image paste from Google Forms --- 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 ); } }