
Troubleshooting
The Editor Does Not Appear on a Snippet or Chunk
- The CMX plugin is enabled
which_element_editor = cmx- in lowercase- The MODX and browser caches have been cleared
- There are no 404 errors for
assets/components/cmx/js/cmx.min.jsin the browser console - Another editor has not replaced the field after CMX
Also check user settings: they can override system values.
Textarea or TinyMCE in a Resource Instead of CMX
Check the context-specific values of use_editor / which_editor, not only the global values:
use_editor = Yesand richtext enabled: CMX does not take over the field;use_editor = Yesandwhich_editornotcmx: a resource without richtext retains a textarea;use_editor = No: CMX replaces content and.modx-richtext.
The selection workflow is described in Integration.
No Autocompletion
cmx.autocompleteand the requiredcmx.autocomplete_*setting are enabled- Try invoking it manually with Ctrl+Space
- For
[[++,[[%, and the API, check the separateautocomplete_settings,autocomplete_lexicons, andautocomplete_apisettings - Check the request to
assets/components/cmx/completions.phpin the browser console - Make sure the manager user has permission to read the corresponding elements
Local suggestions for prefixes and resource fields do not depend on the server response.
Hover Tooltips Do Not Appear
Check that cmx.hovers = Yes. The pointer must be over a tag name, filter, or modifier; a tooltip appears after a short delay.
Descriptions of snippets, chunks, TVs, and resources require a connector response. If an element has no description, basic information is displayed.
Ctrl/Cmd + Click Does Not Open an Element
cmx.goto_definition = Yes- Use
Ctrlon Windows/Linux andCmdon a Mac - An element with that name exists and is accessible to the manager user
- The browser has not blocked the new tab
The current form should not close: the element opens in a new tab.
Server-Side PHP Validation Does Not Work
Check:
cmx.php_lint = Yes;- the correct path in
cmx.php_path, such asphpor the full path to the PHP CLI; - whether
exec()is available on the hosting; - the
lintprocessor response in the browser console.
Without PHP CLI, browser-based validation of brackets, strings, comments, and heredoc/nowdoc continues to work.
A CMX TV Is Not Displayed or Its Value Is Empty
cmx.tv = Yes- The TV uses the cmx input type
- The TV is assigned to the resource template
- Reload the resource page after changing the TV
- The current package version is installed
The value is stored like a regular TV. The language property affects syntax highlighting, while height affects only the field height.
No Draft Is Offered
Check cmx.autosave = Yes and the cmx.autosave_lifetime period. The draft must differ from the saved text and must not have expired.
Drafts are associated with the browser and user through localStorage: they are not transferred to another computer or browser. In private browsing mode, storage may be cleared after the window is closed.
No Versions in History
cmx.versions = Yes- The element or resource has been saved after CMX was installed
- The
cmx_revisiontable was created by the installer - The manager user has permissions for the corresponding object
Files in the file manager are not versioned. Saving unchanged text again within a short interval may not create a separate snapshot.
Formatting Does Not Work on a Mac
Use Cmd+Shift+F, not Shift+Option+F. For other letter commands where Option inserts symbols, see the separate macOS shortcuts in Keyboard Shortcuts.
Theme or Font Settings Differ Between Manager Users
This is expected. The theme, font size, and word wrap can be stored in the quick menu of a specific browser. In addition, the cmx.* system settings can be overridden in the user profile.
Select reset in the quick menu to restore the system values.
Frequently Asked Questions
CMX and TinyMCE at the Same Time?
Yes. TinyMCE can handle richtext resources, while CMX handles elements, files, and resources without an RTE.
Are Composer or npm Required on the Production Site?
No. The ready-to-use transport package contains the compiled JavaScript. npm is only required for frontend development and rebuilding.
Are Drafts and Scratchpad Sent to the Server?
No. They are stored in localStorage. Version history is a separate feature and is stored in the site database.
Is an External CDN Required?
No. The editor, themes, and language modes are included in the package.
