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

10 lines
293 B
TypeScript
Raw Normal View History

2020-11-18 23:43:27 +08:00
import { deleteSelection as originalDeleteSelection } from 'prosemirror-commands'
2020-11-17 04:42:35 +08:00
import { Command } from '../types'
2020-11-05 05:38:52 +08:00
2020-11-18 23:43:27 +08:00
/**
* Delete the selection, if there is one.
*/
export const deleteSelection = (): Command => ({ state, dispatch }) => {
return originalDeleteSelection(state, dispatch)
2020-11-05 05:38:52 +08:00
}