Fix an issue that causes mentions to be inserted to a hidden editor.