I\'m currently using Ace Editor, but I couldn\'t find anything in the docs along the lines of retrieving the current selected line number and its text.
Any ideas?
You can do this:
selectionRange = editor.getSelectionRange(); startLine = selectionRange.start.row; endLine = selectionRange.end.row; content = editor.session.getTextRange(selectionRange);