mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-01 06:37:51 +08:00
10 lines
271 B
TypeScript
10 lines
271 B
TypeScript
|
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)
|
||
|
}
|