Fixed bug with not running on view change. Editor is renamed to TextEditor