updated content editor with preview