Fix richTextInput to work well in page editor.