Skip to content
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

Define tools per field #22

Open
PubliAlex opened this issue Feb 16, 2022 · 1 comment
Open

Define tools per field #22

PubliAlex opened this issue Feb 16, 2022 · 1 comment

Comments

@PubliAlex
Copy link
Contributor

Is your feature request related to a problem? Please describe.
The same way we can define toolbar buttons for rich editor, it would be great to be able to define toolbar buttons for editorjs

Describe the solution you'd like
We can use the same parameter "toolbarButtons" with the list of plugins we want to activate for that field, eg :

fieldName:
    label: Content
    type: editorjs
    span: full
    toolbarButtons: heading, list, attachments, image, etc....

Additional context
Ideally, this solution should take care of additionnal script added with the registerEditorBlocks() method.

Do you think it can be done ?

Best regards,

Alex

@FlusherDock1
Copy link
Owner

Hi Alex! I tried to implement this feature, but it didn't go well since we need to initiate a lot of scripts on page. But you can try, i'll review your PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants