I look into docs and also pick at the source code and I dind't find anything, all I see is selection and range objects, and methods that manipulate ranges.
It's better to use editor.getSelectedText()
instead.
Found in Ace editor source code:
editor.getSession().doc.getTextRange(editor.selection.getRange());
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With