Rich text editor fixes