FLEX-34476 Small code cleanup of RichTextEditor