[RichTextEditor] rough implmentation