EditorJS icon indicating copy to clipboard operation
EditorJS copied to clipboard

Define tools per field

Open PubliAlex opened this issue 3 years ago • 1 comments

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

PubliAlex avatar Feb 16 '22 09:02 PubliAlex

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!

FlusherDock1 avatar Feb 17 '22 19:02 FlusherDock1