fix this.editor reference