Added preview to editor window
Auto resize editor text area