Bug fixes to new RichEditor.