diff --git a/django_editorjs_fields/config.py b/django_editorjs_fields/config.py index e213ecd..a60e212 100644 --- a/django_editorjs_fields/config.py +++ b/django_editorjs_fields/config.py @@ -106,19 +106,21 @@ } ) -PLUGINS_KEYS = { - '@editorjs/image': 'Image', - '@editorjs/header': 'Header', - '@editorjs/checklist': 'Checklist', - '@editorjs/list': 'List', - '@editorjs/quote': 'Quote', - '@editorjs/raw': 'Raw', - '@editorjs/code': 'Code', - '@editorjs/inline-code': 'InlineCode', - '@editorjs/embed': 'Embed', - '@editorjs/delimiter': 'Delimiter', - '@editorjs/warning': 'Warning', - '@editorjs/link': 'LinkTool', - '@editorjs/marker': 'Marker', - '@editorjs/table': 'Table', -} +PLUGINS_KEYS = getattr( + settings, "EDITORJS_PLUGINS_KEYS", { + '@editorjs/image': 'Image', + '@editorjs/header': 'Header', + '@editorjs/checklist': 'Checklist', + '@editorjs/list': 'List', + '@editorjs/quote': 'Quote', + '@editorjs/raw': 'Raw', + '@editorjs/code': 'Code', + '@editorjs/inline-code': 'InlineCode', + '@editorjs/embed': 'Embed', + '@editorjs/delimiter': 'Delimiter', + '@editorjs/warning': 'Warning', + '@editorjs/link': 'LinkTool', + '@editorjs/marker': 'Marker', + '@editorjs/table': 'Table', + } +)