{"repo":"2ik/django-editorjs-fields","free":true,"listed":false,"github":"https://github.com/2ik/django-editorjs-fields","clone":"git clone https://github.com/2ik/django-editorjs-fields.git","description":"Django plugin for using Editor.js","language":"Python","stars":152,"topics":["editorjs","django-editor","django-wysiwyg","wysiwyg","django-admin","django","python"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"django-editorjs-fields Django integration for Editor.js — a block-style WYSIWYG editor. - Django: 2.2 – 6.x - Python: 3.8 – 3.13 - Editor.js: 2.31.6 - --- --- Table of Contents - Installation - Quick start - Rendering in templates - Field arguments - Custom plugins - Forms and widgets - Image uploads - Dark theme - Settings - Support --- Installation Add to INSTALLED APPS : Upgrade --- Quick start Define fields in your model: Don't forget to add URLs for image upload and link metadata: See the full example project: example/ --- Rendering in templates Use the editorjs template filter to render stored blocks as HTML: The filter escapes all user content to prevent XSS. Use the raw block type if you need to render trusted HTML. --- Field arguments Both EditorJsJSONField and EditorJsTextField accept all arguments of their base Django fields ( JSONField / TextField ) plus: Argument Description Default --------------- --------------------------------------------------------------------------------------- --------- plugins List of Editor.js plugin packages EDITORJS DEFAULT PLUGINS tools Tool configuration map (docs) EDITORJS DEFAULT CONFIG TOOLS config Editor.js config overrides ( autofocus , readOnly , placeholder , etc.) {} Config keys are passed directly to the Editor.js constructor. Refer to the official docs for all options. --- Custom plugins Pass a custom plugin list and tool configuration to the field: Registering custom plugin keys If your custom plugin is not in the built-i","default_branch":null,"files":null,"tree":[],"storefront":"/r/2ik","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/2ik/django-editorjs-fields/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}