From 3ab955a7d707cf55b7bf39495ea1523a194b5bb0 Mon Sep 17 00:00:00 2001 From: Ella Date: Wed, 8 May 2024 15:05:18 +0900 Subject: [PATCH] Add comment on core/editor store use --- .../src/components/block-tools/zoom-out-mode-inserters.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/block-editor/src/components/block-tools/zoom-out-mode-inserters.js b/packages/block-editor/src/components/block-tools/zoom-out-mode-inserters.js index f0fc86f2da325e..683b06db834308 100644 --- a/packages/block-editor/src/components/block-tools/zoom-out-mode-inserters.js +++ b/packages/block-editor/src/components/block-tools/zoom-out-mode-inserters.js @@ -25,6 +25,10 @@ function ZoomOutModeInserters() { const { getSettings, getBlockOrder } = select( blockEditorStore ); const { sectionRootClientId: root } = unlock( getSettings() ); // To do: move ZoomOutModeInserters to core/editor. + // Or we perhaps we should move the insertion point state to the + // block-editor store. I'm not sure what it was ever moved to the editor + // store, because all the inserter components all live in the + // block-editor package. // eslint-disable-next-line @wordpress/data-no-store-string-literals const editor = select( 'core/editor' ); return {