Rich text editor correction