Skip to content
Merged
Changes from 1 commit
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
Next Next commit
Fix pattern override bug, first attempt
  • Loading branch information
cbravobernal committed Sep 22, 2025
commit 3b6e8f894e46ea6f1803f60ce38ce42d99627276
6 changes: 4 additions & 2 deletions packages/block-editor/src/components/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,11 @@ export function RichTextWrapper(
blockContext,
]
);
const arePatternOverridesEnabled =
blockBindings?.__default?.source === 'core/pattern-overrides';

const shouldDisableEditing = readOnly || disableBoundBlock;

const shouldDisableEditing =
readOnly || disableBoundBlock || ! arePatternOverridesEnabled;
const { getSelectionStart, getSelectionEnd, getBlockRootClientId } =
useSelect( blockEditorStore );
const { selectionChange } = useDispatch( blockEditorStore );
Expand Down