EditorJS Field (PRO)
A block editor — paragraphs, headings, lists, images — stored as JSON rather than HTML.
Requires the EditorJS extra for MODX
This type is not part of PageBlocks. It shows up in the field type list only when the editorjs_media_source system setting exists, which the separate EditorJS component creates on install. Without that component the type is simply absent from the list — there is nothing to switch on.
Settings:
| Setting | What it does |
|---|---|
| File path | Where the editor puts what you upload into it |
The path understands {resource_id}, {user_id}, {alias} and {id}, so every object can keep its uploads in its own folder.
Output goes through the editorjs modifier, which turns the stored blocks into HTML:
{$content|editorjs}The modifier needs the extra as much as the editor does
|editorjs hands the blocks to the component's own renderer. Move the database to an install that has the field's data but not the component, and the modifier fatals instead of degrading — the content is intact, the page is a 500.
Unless the structure itself is the point, plain Rich text asks less of the site.