tiptap/packages/core/src/commands/joinBackward.ts
2021-06-04 21:56:29 +02:00

18 lines
447 B
TypeScript

import { joinBackward as originalJoinBackward } from 'prosemirror-commands'
import { RawCommands } from '../types'
declare module '@tiptap/core' {
interface Commands<ReturnType> {
joinBackward: {
/**
* Join two nodes backward.
*/
joinBackward: () => ReturnType,
}
}
}
export const joinBackward: RawCommands['joinBackward'] = () => ({ state, dispatch }) => {
return originalJoinBackward(state, dispatch)
}