Set block selection on the fly

Hello,

how can I enable block selection by code? (I mean the selection that I can do when pressing the Alt key)

thanks

The only way to enable/disable rectangular selection is via the configureMouse option

Thanks

I enabled it with:

txtEditor.setOption(“configureMouse”, function() { return {unit: “rectangle”} })

and disabled it with

txtEditor.setOption(“configureMouse”, null)