NodeViewProps
@blockslides/core / NodeViewProps
Interface: NodeViewProps
Defined in: blockslides/packages/core/src/types.ts:667
Extends
Properties
decorations
decorations: readonly
DecorationWithType[]
Defined in: blockslides/packages/core/src/types.ts:669
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.
Overrides
NodeViewRendererProps.decorations
selected
selected:
boolean
Defined in: blockslides/packages/core/src/types.ts:670
updateAttributes()
updateAttributes: (
attributes) =>void
Defined in: blockslides/packages/core/src/types.ts:671
Parameters
attributes
Record<string, any>
Returns
void
deleteNode()
deleteNode: () =>
void
Defined in: blockslides/packages/core/src/types.ts:672
Returns
void
node
node:
Node
Defined in: blockslides/packages/core/src/types.ts:686
The node that is being rendered.
Inherited from
view
view:
EditorView
Defined in: blockslides/packages/core/src/types.ts:690
The editor's view.
Inherited from
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
Inherited from
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.
Inherited from
NodeViewRendererProps.innerDecorations
editor
editor:
SlideEditor
Defined in: blockslides/packages/core/src/types.ts:709
The editor instance.
Inherited from
extension
extension:
Node
Defined in: blockslides/packages/core/src/types.ts:713
The extension that is responsible for the node.
Inherited from
NodeViewRendererProps.extension
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.