-
Notifications
You must be signed in to change notification settings - Fork 5
feat: make editor configurable #8
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
base: main
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||||
3f750fb to
96d97dc
Compare
admin/src/lexical/plugins/ToolbarPlugin/toolbarItems/horizontalRule.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: qodo-merge-pro[bot] <151058649+qodo-merge-pro[bot]@users.noreply.github.com>
…lRule.tsx Co-authored-by: qodo-merge-pro[bot] <151058649+qodo-merge-pro[bot]@users.noreply.github.com>
…for default field config and to fill outdated context values and reorganised font family and size selection
…a useful max height
…s are rendered within
…g (font size basically)
|
@zcei any progress on this? |
User description
This PR adds a bunch of options to be configured on a per-field basis. It does not work for all fields in a Strapi instance at once
Things still to consider/do
PR Type
Enhancement
Description
Refactored toolbar to be fully configurable per field
Added support for per-field enabled node types and actions
supportedNodeTypesregistry for node type plugins and toolbar itemsModularized toolbar item components for maintainability
Improved documentation and configuration instructions
Changes walkthrough 📝
23 files
Add per-field configurable options for node types and actionsInject field config context into editor inputRender plugins dynamically based on enabled node typesAdd context for per-field configurationAdd context for toolbar item render dependenciesRefactor toolbar to render items/groups dynamicallyRemove clearFormatting, move to codeLessUtilsAdd utility for clearing formatting and dropdown classesAdd modular toolbar items for rich text actionsAdd modular toolbar item for code formattingAdd modular toolbar item for linksAdd modular toolbar item for Strapi imagesAdd modular toolbar item for clearing formattingAdd modular toolbar item for horizontal ruleAdd modular toolbar item for page breakAdd modular toolbar items for image and inline imageAdd modular toolbar item for table insertionAdd modular toolbar item for columns layoutAdd modular toolbar item for equation insertionAdd modular toolbar item for collapsible containerAdd modular toolbar items for undo/redo historyUse new clearFormatting utility from codeLessUtilsAdd registry for supported node types and plugins1 files
Update documentation for new configuration and usage1 files