Fix editorView undefined error