tiptap/packages/core/src/commands/liftEmptyBlock.ts

10 lines
271 B
TypeScript
Raw Normal View History

2021-01-06 20:02:30 +08:00
import { liftEmptyBlock as originalLiftEmptyBlock } from 'prosemirror-commands'
import { Command } from '../types'
/**
* Lift block if empty.
*/
export const liftEmptyBlock = (): Command => ({ state, dispatch }) => {
return originalLiftEmptyBlock(state, dispatch)
}