From 12c73b4ebbdd2e09cf89c68da2899272a8e5da97 Mon Sep 17 00:00:00 2001 From: Ella Date: Wed, 14 Aug 2024 15:16: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 ); } }