15 lines
408 B
TypeScript
15 lines
408 B
TypeScript
import { deleteSelection as originalDeleteSelection } from 'prosemirror-commands'
|
|
import { Command } from '../Editor'
|
|
|
|
type DeleteSelectionCommand = () => Command
|
|
|
|
declare module '../Editor' {
|
|
interface Commands {
|
|
deleteSelection: DeleteSelectionCommand,
|
|
}
|
|
}
|
|
|
|
export const deleteSelection: DeleteSelectionCommand = () => ({ state, dispatch }) => {
|
|
return originalDeleteSelection(state, dispatch)
|
|
}
|