improve command handling
This commit is contained in:
@@ -3,7 +3,7 @@ import { Command, Mark, markInputRule, markPasteRule } from '@tiptap/core'
|
||||
export type CodeCommand = () => Command
|
||||
|
||||
declare module '@tiptap/core/src/Editor' {
|
||||
interface Editor {
|
||||
interface Commands {
|
||||
code: CodeCommand,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user