When CTRL is hold , clicking on text in the editor will add a new cursor.
While this might be useful, I would like to disable it (I already use CTRL to display custom links)
Is there a simple way to disable multiple selection ?
When CTRL is hold , clicking on text in the editor will add a new cursor.
While this might be useful, I would like to disable it (I already use CTRL to display custom links)
Is there a simple way to disable multiple selection ?
The configureMouse
option can be used for this.
Thanks a lot. This fixed it :
var cm = CodeMirror(editorDiv,
{
...
configureMouse: (cm, repeat, ev) =>
{
return { addNew : false };
},
...
});