R
I

BlockBehavior

tested

Optional block-specific behaviors used by core commands.

Signature

ts
interface BlockBehavior

Properties

PropertyTypeDescription
empty?readonly(() => Content) | undefinedContent for a fresh empty block of this type (defaults to empty inline).
toText?readonly((node: Node) => string) | undefinedPlain-text extraction (defaults to inline text).