tiptap/packages/core/src/commands/deleteSelection.ts
2020-11-18 16:43:27 +01:00

10 lines
293 B
TypeScript

import { deleteSelection as originalDeleteSelection } from 'prosemirror-commands'
import { Command } from '../types'
/**
* Delete the selection, if there is one.
*/
export const deleteSelection = (): Command => ({ state, dispatch }) => {
return originalDeleteSelection(state, dispatch)
}