codemirror

Is there a way to disable mouse action on codemirror?


How can I disable mouse usage in codemirror.

I want it to behave like vim editor where the user cannot move anywhere using the mouse.

Thanks in advance.


Solution

  • How about using pointer-events: none; on the editor container?

    .CodeMirror {
        pointer-events: none;
    }
    

    jsfiddle-icon Demo!

    See also