RichText samples
editor api
remove
Deleting text. Check documentation:
remove() method
Remove selected text