-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Restrict formatting controls in write mode (contentOnly) #71058
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
getdave
merged 15 commits into
trunk
from
feature/restrict-formatting-controls-in-write-mode
Aug 8, 2025
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
31e093d
Restrict formatting controls in write mode (contentOnly)
getdave 6bebca2
Update format toolbar to use correct Write Mode pattern
getdave a32322b
Add write mode format filtering with essential flag
getdave 4faecc8
Mark strikethrough as non-essential again
getdave af68b52
Restore changes to format edit
getdave bb7b321
Tidy changes to toolbar
getdave f4ba923
Restore toolbar to original
getdave f68df21
Add perf opt
getdave 4659d60
Optimize withWriteModeFilter HOC performance
getdave d3cd4ec
Use unstable
getdave 533103a
Revert unneeded changes to formats
getdave 6fc6b0a
Refactor Write Mode format filtering to use useFormatTypes hook
getdave 8d4a120
Remove redundant experiment flag check in Write Mode detection
getdave 669b5f8
Replace __unstableEssential with private Symbol essentialFormatKey
getdave a2787ca
Improve variable naming: rename isWriteMode to isContentOnlyWriteMode
getdave File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Refactor Write Mode format filtering to use useFormatTypes hook
- Remove withWriteModeFilter HOC approach in favor of centralized filtering - Add Write Mode detection to RichText component with experiment flag check - Enhance useFormatTypes hook with disableNoneEssentialFormatting parameter - Centralize all format filtering logic in one place for better performance - Eliminate individual store subscriptions per format component - Maintain same functionality with improved architecture and performance
- Loading branch information
commit 6fc6b0a9153825091b3b519ccd0580ff191e1ec7
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 0 additions & 61 deletions
61
packages/block-editor/src/components/rich-text/with-write-mode-filter.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.