We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37693
    • 47 Posts
    shaunmorrison Reply #1, 14 years ago
    Hi

    I'm looking to use a CodeMirror enhanced textarea as a TV. Is there any way to do this?

    At the moment I can only use CodeMirror in elements and in the RTE areas.

    I'm on REVO 2.2.5
    CodeMirror 2.2.0

    Many thanks,
    Shaun
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      It might be possible to set it to be the RTE in the system settings, and specify a Rich Text TV. I haven't tried it, though.

      Of course, that would also make it the RTE for resources as well, which may not be acceptable.
        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
        • 37693
        • 47 Posts
        shaunmorrison Reply #3, 14 years ago
        Unfortunately, this wouldn't work as we need TinyMCE for the RTE.

        Basically, trying to create a nice TV to add code to on a per-resource basis. Is bordering on unusable just having a textarea to edit a sizable amount of code.

        Many thanks,
        Shaun
          • 23034
          • 10 Posts
          Still no solution for this?


          (Edit: https://github.com/splittingred/CodeMirror/issues/20)