Write Mode: Non-overridden synced pattern content is editable #66424
Labels
[Feature] Synced Patterns
Related to synced patterns (formerly reusable blocks)
[Feature] Write mode
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
(This is the issue that the PR #65408 was intended to solve, but it was reverted due to a performance issue)
Usually synced pattern content is only editable when a block has pattern overrides enabled.
In Write Mode though, all pattern content is editable regardless of overrides.
The bug happens because the
getBlockEditingMode
changes the editing mode of pattern inner blocks when in Write Mode, whereas usually the pattern block sets the editing of its inner blocks mode itself.Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: