mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-06 02:17:49 +08:00
10 lines
268 B
TypeScript
10 lines
268 B
TypeScript
|
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)
|
||
|
}
|