Skip to content

defineTextBlock

defineTextBlock(config): TextBlock

Defined in: packages/editor/src/renderers/renderer.types.ts:270

Define a text block renderer. The returned registration is mounted via the <TextBlockPlugin> wrapper.

Only one text block registration is supported today. Subsequent registrations log a console warning and skip.

TextBlockRender

"block"

TextBlock

defineTextBlock({
type: 'block',
render: ({attributes, children}) => (
// (p {...attributes})({children})(/p)
),
})