add broken chain
This commit is contained in:
@@ -24,6 +24,7 @@ export type Command = (props: {
|
|||||||
editor: Editor,
|
editor: Editor,
|
||||||
tr: Transaction,
|
tr: Transaction,
|
||||||
commands: SingleCommands,
|
commands: SingleCommands,
|
||||||
|
// chain: () => ChainedCommands,
|
||||||
state: EditorState,
|
state: EditorState,
|
||||||
view: EditorView,
|
view: EditorView,
|
||||||
dispatch: (args?: any) => any,
|
dispatch: (args?: any) => any,
|
||||||
@@ -138,6 +139,7 @@ export class Editor extends EventEmitter {
|
|||||||
state: this.chainableEditorState(tr, this.state),
|
state: this.chainableEditorState(tr, this.state),
|
||||||
view: this.view,
|
view: this.view,
|
||||||
dispatch: () => false,
|
dispatch: () => false,
|
||||||
|
// chain: this.chain.bind(this),
|
||||||
tr,
|
tr,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -184,6 +186,7 @@ export class Editor extends EventEmitter {
|
|||||||
state: this.chainableEditorState(tr, this.state),
|
state: this.chainableEditorState(tr, this.state),
|
||||||
view: this.view,
|
view: this.view,
|
||||||
dispatch: () => false,
|
dispatch: () => false,
|
||||||
|
// chain: this.chain.bind(this),
|
||||||
tr,
|
tr,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user