We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49543
    • 4 Posts
    I am using the Ace editor in modx 2.5.5 and I always use the VIM mode. Is there some way that I can set Ace to have VIM as the default?

    This question has been answered by dgt849327673. See the first response.

    • discuss.answer
      • 49543
      • 4 Posts
      I figured it out! In the file: assets/components/ace/modx.texteditor.js, I inserted the following lines of code.

      88 ace.require("ace/keybindings/vim");
      89 this.editor.setKeyboardHandler("ace/keyboard/vim");
      90

      This worked for me.

        • 42562
        • 1,145 Posts
        But will you not lose this each time there is an upgrade?
          TinymceWrapper: Complete back/frontend content solution.
          Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
          5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
          • 49543
          • 4 Posts
          Quote from: donshakespeare at Apr 01, 2017, 01:27 AM
          But will you not lose this each time there is an upgrade?

          Yes, I think your right. But I don't know how to do any better. If you know a better way, please comment.