Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/block-editor/src/components/block-canvas/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import Iframe from '../iframe';
import WritingFlow from '../writing-flow';
import { useMouseMoveTypingReset } from '../observe-typing';
import { useBlockSelectionClearer } from '../block-selection-clearer';
import { useBlockCommands } from '../use-block-commands';

export function ExperimentalBlockCanvas( {
shouldIframe = true,
Expand All @@ -23,6 +24,7 @@ export function ExperimentalBlockCanvas( {
contentRef: contentRefProp,
iframeProps,
} ) {
useBlockCommands();
const resetTypingRef = useMouseMoveTypingReset();
const clearerRef = useBlockSelectionClearer();
const localRef = useRef();
Expand Down
2 changes: 0 additions & 2 deletions packages/edit-post/src/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
} from '@wordpress/editor';
import { useSelect, useDispatch } from '@wordpress/data';
import {
useBlockCommands,
BlockBreadcrumb,
BlockToolbar,
privateApis as blockEditorPrivateApis,
Expand Down Expand Up @@ -134,7 +133,6 @@ function useEditorStyles() {
function Layout( { initialPost } ) {
useCommands();
useCommonCommands();
useBlockCommands();

const isMobileViewport = useViewportMatch( 'medium', '<' );
const isHugeViewport = useViewportMatch( 'huge', '>=' );
Expand Down
2 changes: 0 additions & 2 deletions packages/edit-site/src/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {
import { store as preferencesStore } from '@wordpress/preferences';
import {
privateApis as blockEditorPrivateApis,
useBlockCommands,
store as blockEditorStore,
} from '@wordpress/block-editor';
import { privateApis as coreCommandsPrivateApis } from '@wordpress/core-commands';
Expand Down Expand Up @@ -66,7 +65,6 @@ export default function Layout() {
useCommands();
useEditModeCommands();
useCommonCommands();
useBlockCommands();

const isMobileViewport = useViewportMatch( 'medium', '<' );

Expand Down