@tiptap/starter-kit
Version:
starter kit for tiptap
9 lines (8 loc) • 323 B
TypeScript
import { Node as ProseMirrorNode } from '@tiptap/pm/model';
/**
* Returns true if the given node is empty.
* When `checkChildren` is true (default), it will also check if all children are empty.
*/
export declare function isNodeEmpty(node: ProseMirrorNode, { checkChildren }?: {
checkChildren: boolean;
}): boolean;