mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 14:13:21 +08:00
add broken chain
This commit is contained in:
parent
8ca8e041fd
commit
25a79b4aea
@ -24,6 +24,7 @@ export type Command = (props: {
|
||||
editor: Editor,
|
||||
tr: Transaction,
|
||||
commands: SingleCommands,
|
||||
// chain: () => ChainedCommands,
|
||||
state: EditorState,
|
||||
view: EditorView,
|
||||
dispatch: (args?: any) => any,
|
||||
@ -138,6 +139,7 @@ export class Editor extends EventEmitter {
|
||||
state: this.chainableEditorState(tr, this.state),
|
||||
view: this.view,
|
||||
dispatch: () => false,
|
||||
// chain: this.chain.bind(this),
|
||||
tr,
|
||||
}
|
||||
|
||||
@ -184,6 +186,7 @@ export class Editor extends EventEmitter {
|
||||
state: this.chainableEditorState(tr, this.state),
|
||||
view: this.view,
|
||||
dispatch: () => false,
|
||||
// chain: this.chain.bind(this),
|
||||
tr,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user