You guessed this correctly, RadDocumentEditor works with the current selection
(RadDocument.Selection) and position
(RadDocument.CaretPosition) of its associated RadDocument.
Just a small tweak, which might not be relevant, but still - DocumentSelection.AddSelectionStart(*) will start adding new range to the selection, meaning that if you call this method multiple times, it will create selection with multiple ranges. Instead, you can use DocumentSelection.SetSelectionStart
(*), which clears the current selection before starting the creation of a new range.
Get quickly onboarded and successful
with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.