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)
|
|
}
|