RichText samples
Editor
Setting selection.
Setting selection.
Check documentation:
setSelection() method
Free Trial
Set selection
{ "left": { "blockIndex": 0, "textIndex": 0, "offset": 0 }, "right": { "blockIndex": 0, "textIndex": 0, "offset": 11 }, "range": true }