tiptap/packages/core/src/commands/undoInputRule.ts

10 lines
268 B
TypeScript
Raw Normal View History

2021-01-06 20:02:30 +08:00
import { undoInputRule as originalUndoInputRule } from 'prosemirror-inputrules'
import { Command } from '../types'
/**
* Undo an input rule.
*/
export const undoInputRule = (): Command => ({ state, dispatch }) => {
return originalUndoInputRule(state, dispatch)
}