Skip to content

Commit b9b2b4e

Browse files
committed
Clean up visual editor component
1 parent 428790e commit b9b2b4e

File tree

1 file changed

+6
-8
lines changed
  • packages/editor/src/components/visual-editor

1 file changed

+6
-8
lines changed

packages/editor/src/components/visual-editor/index.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ function checkForPostContentAtRootLevel( blocks ) {
9393
function VisualEditor( {
9494
// Ideally as we unify post and site editors, we won't need these props.
9595
autoFocus,
96-
disableIframe = false,
9796
iframeProps,
9897
contentRef,
9998
className,
@@ -405,13 +404,13 @@ function VisualEditor( {
405404
{
406405
'has-padding': isFocusedEntity || enableResizing,
407406
'is-resizable': enableResizing,
408-
'is-iframed': ! disableIframe,
407+
'is-iframed': true,
409408
}
410409
) }
411410
>
412411
<ResizableEditor enableResizing={ enableResizing } height="100%">
413412
<BlockCanvas
414-
shouldIframe={ ! disableIframe }
413+
shouldIframe
415414
contentRef={ contentRef }
416415
styles={ iframeStyles }
417416
height="100%"
@@ -488,11 +487,10 @@ function VisualEditor( {
488487
) }
489488
layout={ blockListLayout }
490489
dropZoneElement={
491-
// When iframed, pass in the html element of the iframe to
492-
// ensure the drop zone extends to the edges of the iframe.
493-
disableIframe
494-
? localRef.current
495-
: localRef.current?.parentNode
490+
// Pass in the html element of the iframe to
491+
// ensure the drop zone extends to the edges of
492+
// the iframe.
493+
localRef.current?.parentNode
496494
}
497495
__unstableDisableDropZone={
498496
// In template preview mode, disable drop zones at the root of the template.

0 commit comments

Comments
 (0)