We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1778
    • 659 Posts
    Hi all,

    I saw yesterday this new add-on for Revo : codemirror ! I downoaded and installed it via Package management (with a success message at the end) but I can’t figure how it works ?
    The doc mentionned (http://svn.modxcms.com/docs/display/ADDON/codemirror) seems not to be ready at this time... And I can’t find any clue on what to do with it...

    At this time, codemirror is installed, and I don’t see anything new in my manager... I’d like to use it when creating/editing templates, chunks and snippets but if possible not at all in documents content...

    Thanks for your help...
    cheers
      • 1778
      • 659 Posts
      After clearing cache 3 or 4 times it seems codemirror works fine. I have the colored syntax in chunks, snippets, plugins and now templates (after checking the checkboxes OnTempFormPrerender, and onTempFormRender in system Events)
      Thanks, it’s really a great add-on !
      Cheers
        • 28215
        • 4,149 Posts
        No problem - did you try installing it on Revo RC-2? It states it’s RC-3 (latest SVN) and onward only.
          shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
          • 1778
          • 659 Posts
          Hello

          No I tried on the last SVN RC3 (#7039) ... It was just a problem of cache (both browser and manager , probably browser -- FF3.6.3 in this case)...

          Thanks for this add-on
            • 1778
            • 659 Posts
            Hello again

            After upgrading FF3.6.3 to 3.6.4 codemirror does not work anymore sad

            When editing a chunk or a snippet or a template, it flashes quickly (i can see the code of my Element during this quick flash) and then I got a blank area with just "1" (number for the first row) like in the screenshot attached...
            It works fine with Chrome...
              • 28215
              • 4,149 Posts
              Are you on PC or Mac? Can you clear the browser cache and site cache?
                shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                • 28215
                • 4,149 Posts
                Nevermind; just update Revolution to latest SVN.
                  shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                  • 1778
                  • 659 Posts
                  Done, all works fine now...
                  Thanks again
                    • 19889
                    • 616 Posts
                    doesn’t work for me - using the latest svn download as well as the latest download of the plugin - no error - text field just doesn’t get converted - no line numbers and no color highlighting.
                      • 1778
                      • 659 Posts
                      Hi,

                      In "System->System settings", search "editor", you’ll find a setting called "which_element_editor" you should set it to "codemirror"... and then it should work well.

                      Hope this helps
                      Cheers