-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
feat: add format bar config api #6433
feat: add format bar config api #6433
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
Looks good! But having an |
We should build some API to make the spec extending easier. Like |
Overview
API
addDivider
Add a divider in format bar, multiple dividers will be merged into one automatically.
addHighlighterDropdown
Add a dropdown button to add color and background color for text.
AddInlineAction
Add an action button in the format bar.
addTextStyleToggle
Add an action button in the format bar the change the style of selected texts, ex. bold, italic, inline code...
This is basically a wrapper of
AddInlineAction
.addParagraphDropdown
Add a dropdown button to change the flavour and type of selected blocks.
addParagraphAction
Add a certain action in the paragraph dropdown list.
addRawConfigItems
You can also add a raw config item list if you have your own config builder.
clearConfig
Clear all the config.