RichText samples
editor api
update
Updating text. Check documentation:
update() method
Update selected text