Get rid of useFlashEditableBlocks
It is a private API which is not critical for our application. It shortly highlights blocks that are editable after a click in the parent. As it is not critical and is private, it is a risk, and we should rather not use it. [MAILPOET-6319]
This commit is contained in:
committed by
Oluwaseun Olorunsola
parent
5bbdc41679
commit
c72b0b6f79
@@ -30,7 +30,7 @@ export const TEMPLATE_PART_POST_TYPE = 'wp_template_part';
|
|||||||
export const PATTERN_POST_TYPE = 'wp_block';
|
export const PATTERN_POST_TYPE = 'wp_block';
|
||||||
export const NAVIGATION_POST_TYPE = 'wp_navigation';
|
export const NAVIGATION_POST_TYPE = 'wp_navigation';
|
||||||
|
|
||||||
const { ExperimentalBlockCanvas: BlockCanvas, useFlashEditableBlocks } = unlock(
|
const { ExperimentalBlockCanvas: BlockCanvas } = unlock(
|
||||||
blockEditorPrivateApis
|
blockEditorPrivateApis
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -129,9 +129,6 @@ export function VisualEditor( {
|
|||||||
localRef,
|
localRef,
|
||||||
contentRef,
|
contentRef,
|
||||||
renderingMode === 'post-only' ? typewriterRef : null,
|
renderingMode === 'post-only' ? typewriterRef : null,
|
||||||
useFlashEditableBlocks( {
|
|
||||||
isEnabled: renderingMode === 'template-locked',
|
|
||||||
} ),
|
|
||||||
useSelectNearestEditableBlock( {
|
useSelectNearestEditableBlock( {
|
||||||
isEnabled: renderingMode === 'template-locked',
|
isEnabled: renderingMode === 'template-locked',
|
||||||
} ),
|
} ),
|
||||||
|
Reference in New Issue
Block a user