
- MODX 3
- PHP 8.2


Common manager and development issues. Editor FAQ: FAQ.
which_editor = mxEditorJs, use_editor = Yes, mxeditorjs.enabled = Yesmxeditorjs.js?v=... loadOn init failure Editor.js falls back to textarea.
Console:
console.log(window.mxEditorJsConfig);Expected: connectorUrl, resourceId, enabledTools, galleryMaxCount, locale.
| Symptom | Check |
|---|---|
| 403 / Permission denied | save_document permission, manager session |
| File too large | mxeditorjs.max_upload_size, PHP upload_max_filesize |
| Wrong type | mxeditorjs.allowed_image_types, MIME via finfo_file |
| Folder not writable | Media Source ID, write access to image_upload_path / file_upload_path |
patch-package for @editorjs/attaches did not apply. In package directory:
npm install
npm run buildCopy mxeditorjs.js to assets/components/mxeditorjs/js/. After npm update @editorjs/attaches rebuild patch: npx patch-package @editorjs/attaches.
URL: assets/components/mxeditorjs/connector.php. In Network inspect action, body { success, message }. Auth errors use HTTP 200, not 403.
Typical message: validation errors from ContentValidator.
Two renderers: client renderPreviewHtml (form) and server HtmlRenderer (content/save). Align block logic in both. See Architecture.
Resolver adds gallery to available_tools and profiles. Check JSON in mxeditorjs.profiles if edited manually. Clear cache.
MODX reads not Extras/ but:
core/components/mxeditorjs/assets/components/mxeditorjs/Sync:
cp -r Extras/mxEditorJs/core/components/mxeditorjs/ core/components/mxeditorjs/
cp -r Extras/mxEditorJs/assets/components/mxeditorjs/ assets/components/mxeditorjs/Or rsync:
rsync -av --delete Extras/mxEditorJs/core/components/mxeditorjs/ core/components/mxeditorjs/
rsync -av --delete --exclude='node_modules' Extras/mxEditorJs/assets/components/mxeditorjs/ assets/components/mxeditorjs/SELECT id, name, static, static_file FROM modx_site_plugins WHERE name = 'mxEditorJs';With static = 1, edit Extras/.../mxeditorjs.plugin.php without re-saving the element in manager.
rm -rf core/cache/mgr/ core/cache/includes/ core/cache/scripts/Or Settings → Clear cache.
mxeditorjs_json, mxeditorjs_tv_{id}_json[mxEditorJs] errors in syncToTextarea / renderPreviewHtmlmxeditorjs_content, content_hash fieldgrep '\[mxEditorJs\]' core/cache/logs/error.log| Symptom | Fix |
|---|---|
| Editor does not load | npm run build, copy mxeditorjs.js |
| MutationObserver error | Rebuild and copy JS |
| TV does not init | Textarea + Rich Text = Yes |
| Attaches no dialog | npm install, patch-package |
| Gallery missing from toolbar | Check available_tools, profile, cache |