improvements on RichTextEditor