-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Remove fomat restriction API #74765
Copy link
Copy link
Closed
Labels
[Package] Format library/packages/format-library/packages/format-library[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Status] In discussionUsed to indicate that an issue is in the process of being discussedUsed to indicate that an issue is in the process of being discussed[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Description
See:
- Make format control restrictions experimental #74739
- Restrict formatting controls in write mode (contentOnly) #71058
#71058 introduced the new private API to restrict inline fomatting controls, and only format controls marked as "essential" are availavle when in contentOnly.
Since the essentialFormatKey is a private Symbol, so there is no way for consumers to mark their formats as "essential". This behavior has also been reported as a bug:
- Inline Format missing in Synced Pattern with Paragraph and heading Overrides (WP 6.9) #74168
- Inline-Format Toolbar is missing for custom defaultBlock's RichText components #74345
Let's clarify the expected behavior of this API more, explore problems to be fixed, and aim to stabilize this API for WP 7.0.
Based on feedback, it seems like a good idea to remove this API.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Package] Format library/packages/format-library/packages/format-library[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Status] In discussionUsed to indicate that an issue is in the process of being discussedUsed to indicate that an issue is in the process of being discussed[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
✅ Done