NodeViewRendererProps
@blockslides/core / NodeViewRendererProps
Interface: NodeViewRendererProps
Defined in: blockslides/packages/core/src/types.ts:681
Extended by
Properties
node
node:
Node
Defined in: blockslides/packages/core/src/types.ts:686
The node that is being rendered.
view
view:
EditorView
Defined in: blockslides/packages/core/src/types.ts:690
The editor's view.
getPos()
getPos: () =>
number|undefined
Defined in: blockslides/packages/core/src/types.ts:694
A function that can be called to get the node's current position in the document.
Returns
number | undefined
decorations
decorations: readonly
Decoration[]
Defined in: blockslides/packages/core/src/types.ts:699
is an array of node or inline decorations that are active around the node. They are automatically drawn in the normal way, and you will usually just want to ignore this, but they can also be used as a way to provide context information to the node view without adding it to the document itself.
innerDecorations
innerDecorations:
DecorationSource
Defined in: blockslides/packages/core/src/types.ts:704
holds the decorations for the node's content. You can safely ignore this if your view has no content or a contentDOM property, since the editor will draw the decorations on the content. But if you, for example, want to create a nested editor with the content, it may make sense to provide it with the inner decorations.
editor
editor:
SlideEditor
Defined in: blockslides/packages/core/src/types.ts:709
The editor instance.
extension
extension:
Node
Defined in: blockslides/packages/core/src/types.ts:713
The extension that is responsible for the node.
HTMLAttributes
HTMLAttributes:
Record<string,any>
Defined in: blockslides/packages/core/src/types.ts:717
The HTML attributes that should be added to the node's DOM element.