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

7 lines
194 B
TypeScript
Raw Normal View History

2020-11-05 05:38:52 +08:00
import { selectParentNode } from 'prosemirror-commands'
2020-11-17 04:42:35 +08:00
import { Command } from '../types'
2020-11-05 05:38:52 +08:00
export default (): Command => ({ state, dispatch }) => {
return selectParentNode(state, dispatch)
}