We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6705
    • 79 Posts
    Does MODx store the path to TinyMCE somewhere?

    I’m making my own custom form as part of a MODx-powered website, and would like to make use of TinyMCE for the textarea fields. To use TinyMCE, I need to include its script into the relevant page. For obvious reasons, I don’t want to have hardcoded values all over the place, so I was going to use a constant for this. Rather than define my own constant, I was wondering whether MODx itself already stores the path to TinyMCE somewhere, that I could just make use of?

    Thanks for any advice.
      Please don't PM me unless it's absolutely essential: if a technical question is worth asking, it's worth asking in public, so that others can share their experience, and so that all can learn from the answers.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      TinyMCE is a plugin, so the path to the assets/plugins/tinymce scripts is set in the plugin’s configuration. It’s not an integral part of MODx. In fact, there are alternative editing scripts that have been ported to plugins that you can use instead.

      So the short answer is no, there is no MODx configuration path for it.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org