django-editorjs-fields icon indicating copy to clipboard operation
django-editorjs-fields copied to clipboard

Invalid config in EDITORJS_DEFAULT_CONFIG_TOOLS

Open aq1 opened this issue 3 years ago • 1 comments

I am not 100% sure but it seems that you need to keep keys in this dict EDITORJS_DEFAULT_CONFIG_TOOLS lowercase. For example: 'list': {'class': 'List', 'inlineToolbar': True},

If you keep them capitalized the data generated by the widget won't be valid outside admin widget, because EditorJs expects lowercased types of blocks. You can check it in plugins documentation or on main page of editor. For example 👇

image

aq1 avatar Jul 26 '22 13:07 aq1

if we do this, then after updating the plugin, app may have problems. developers can use their own logic for displaying fields on front. EDITORJS_DEFAULT_CONFIG_TOOLS parameter can always be customized in your settings

2ik avatar Aug 09 '22 13:08 2ik