mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-01 06:37:51 +08:00
10 lines
293 B
TypeScript
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)
|
|
}
|