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