We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28215
    • 4,149 Posts
    splittingred Reply #1, 16 years ago
    This is an auto-generated topic for CodeMirror 1.1.0-pl by splittingred.

    Brief Description:

    CodeMirror integration for MODx Revolution. Get custom syntax highlighting in your Elements.
    New in 1.1.0
    • Optimized for Revolution 2.0.1
    • Deactivated TV default text editing since it caused newline problems
    • Fixed various bugs
    • Integrated into OnFileEditFormPrerender, now can use in file editing
    • Added extra checks and options for ensuring changes get saved

    New in 1.0.1

    • Now auto-assigns CodeMirror to which_element_editor setting

    CodeMirror 1.1.0-pl only works with Revolution 2.0.1 or later.
      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
      • 162
      • 6 Posts
      Hello.

      I’ve installed CodeMirror 1.1.0-pl to my modx revo 2.0.0-pl site.
      After that CodeMirror editor appeared as an editor for elements but it shows no code.
      It shows totally empty snippets and chunks.

      Just can’t figure out what’s wrong. Any other add-on works fine.
        • 28215
        • 4,149 Posts
        splittingred Reply #3, 16 years ago
        CodeMirror 1.1.0-pl only works with Revolution 2.0.1 or later.
          shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
          • 162
          • 6 Posts
          I fixed my problem with codemirror but don’t know how smiley

          More detailed here:
          http://modxcms.com/forums/index.php/topic,54509.msg314562.html#msg314562

          thanx
            • 7557
            • 61 Posts
            Hi!
            After upgrading Revo to 2.02 and CM to 1.1.0, in FireFox latest version 3.6.10 CM does not load (like it is disabled, just regular textfiled). In IE8 and Chrome work well.
            I try uninstal and remove all version from Revo and install again, but not help.
              • 29076
              • 615 Posts
              Quote from: dj13 at Sep 18, 2010, 08:00 AM

              Hi!
              After upgrading Revo to 2.02 and CM to 1.1.0, in FireFox latest version 3.6.10 CM does not load (like it is disabled, just regular textfiled). In IE8 and Chrome work well.
              I try uninstal and remove all version from Revo and install again, but not help.

              Same for me.
                I think, thererfor I am! But what I am, and why...?
                • 28215
                • 4,149 Posts
                splittingred Reply #7, 16 years ago
                Try clearing your browser cache.
                  shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                  • 11055 ☆ A M B ☆
                  • 3,112 Posts
                  each time I run the Code Mirror (even from the earlier versions), these always came out on the error logs:
                   [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  [2010-09-19 03:03:05] (ERROR @ D:\localhost\my-site.com\core\xpdo\xpdo.class.php : 1731) PHP warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: recursion detected
                  
                  


                  Syntax error, perhaps?

                  I’m running modx 2.0.2-pl on FireFox 3.6.8 for Windows XP.
                  Server settings are on my signature.
                    Rico
                    Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                    MODx is great, but knowing how to use it well makes it perfect!

                    www.virtudraft.com

                    Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                    Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                    Maintainter/contributor of Babel

                    Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
                    • 28215
                    • 4,149 Posts
                    splittingred Reply #9, 16 years ago
                    Probably; can you file it as a bug here: http://github.com/splittingred/CodeMirror/issues/ ?
                      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                      • 11155
                      • 74 Posts
                      CodeMirror isn’t "compatible" with the code provided here -> http://bobsguides.com/custom-db-tables.html for the CreateXpdoClasses snippet: after saving the snippet, load something else and come back on the snippet: the first "<?php" is removed and the code isn’t highlighted anymore.