UGLY HACK to make RichTextEditor work