Selection indication was done using the on[Text]SelectionChange listeners.
you can try the following calls in the console of your browser:
// text and code modes: editor.getTextSelection() editor.setTextSelection(startPos, endPos) // tree mode: editor.getSelection() editor.setSelection(startNode, endNode)

object
{11}
array
[3]
boolean
:
true
htmlcode
:
"
escaped_unicode
:
\\u20b9
unicode
:
\u20b9,\ud83d\udca9
return
:
\n
null
:
null
number
:
123
object
{2}
string
:
Hello World
url
:
http://jsoneditoronline.org
Selection: