@@ -21,7 +21,6 @@ import { useSelect } from '@wordpress/data';
2121/**
2222 * Internal dependencies
2323 */
24- import { useBlockSelectionClearer } from '../block-selection-clearer' ;
2524import { useWritingFlow } from '../writing-flow' ;
2625import { getCompatibilityStyles } from './get-compatibility-styles' ;
2726import { useScaleCanvas } from './use-scale-canvas' ;
@@ -119,7 +118,6 @@ function Iframe( {
119118 /** @type {[Document, import('react').Dispatch<Document>] } */
120119 const [ iframeDocument , setIframeDocument ] = useState ( ) ;
121120 const [ bodyClasses , setBodyClasses ] = useState ( [ ] ) ;
122- const clearerRef = useBlockSelectionClearer ( ) ;
123121 const [ before , writingFlowRef , after ] = useWritingFlow ( ) ;
124122
125123 const setRef = useRefEffect ( ( node ) => {
@@ -176,8 +174,6 @@ function Iframe( {
176174
177175 documentElement . classList . add ( 'block-editor-iframe__html' ) ;
178176
179- clearerRef ( documentElement ) ;
180-
181177 contentDocument . dir = ownerDocument . dir ;
182178
183179 for ( const compatStyle of getCompatibilityStyles ( ) ) {
@@ -243,7 +239,6 @@ function Iframe( {
243239 const bodyRef = useMergeRefs ( [
244240 useBubbleEvents ( iframeDocument ) ,
245241 contentRef ,
246- clearerRef ,
247242 writingFlowRef ,
248243 disabledRef ,
249244 ] ) ;
0 commit comments