refactoring
This commit is contained in:
@@ -123,7 +123,7 @@ export class Editor extends EventEmitter {
|
|||||||
editor: this.proxy,
|
editor: this.proxy,
|
||||||
state: this.chainableEditorState(tr, this.state),
|
state: this.chainableEditorState(tr, this.state),
|
||||||
view: this.view,
|
view: this.view,
|
||||||
dispatch: () => {},
|
dispatch: () => false,
|
||||||
tr,
|
tr,
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -156,7 +156,7 @@ export class Editor extends EventEmitter {
|
|||||||
editor: this.proxy,
|
editor: this.proxy,
|
||||||
state: this.chainableEditorState(tr, this.state),
|
state: this.chainableEditorState(tr, this.state),
|
||||||
view: this.view,
|
view: this.view,
|
||||||
dispatch: () => {},
|
dispatch: () => false,
|
||||||
tr,
|
tr,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user