mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-28 20:20:09 +08:00
18 lines
441 B
TypeScript
18 lines
441 B
TypeScript
import { joinBackward as originalJoinBackward } from 'prosemirror-commands'
|
|
import { Command, RawCommands } from '../types'
|
|
|
|
declare module '@tiptap/core' {
|
|
interface Commands {
|
|
joinBackward: {
|
|
/**
|
|
* Join two nodes backward.
|
|
*/
|
|
joinBackward: () => Command,
|
|
}
|
|
}
|
|
}
|
|
|
|
export const joinBackward: RawCommands['joinBackward'] = () => ({ state, dispatch }) => {
|
|
return originalJoinBackward(state, dispatch)
|
|
}
|