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

10 lines
290 B
TypeScript
Raw Normal View History

2021-01-06 20:02:30 +08:00
import { selectNodeBackward as originalSelectNodeBackward } from 'prosemirror-commands'
import { Command } from '../types'
/**
* Select a node backward.
*/
export const selectNodeBackward = (): Command => ({ state, dispatch }) => {
return originalSelectNodeBackward(state, dispatch)
}