@umbraco-cms/backoffice
    Preparing search index...

    Interface NodeViewRendererProps

    interface NodeViewRendererProps {
        decorations: readonly Decoration[];
        editor: Editor;
        extension: Node;
        getPos: () => undefined | number;
        HTMLAttributes: Record<string, any>;
        innerDecorations: DecorationSource;
        node: Node;
        view: EditorView;
    }

    Hierarchy (View Summary)

    Index

    Properties

    decorations: readonly Decoration[]

    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.

    editor: Editor

    The editor instance.

    extension: Node

    The extension that is responsible for the node.

    getPos: () => undefined | number

    A function that can be called to get the node's current position in the document.

    HTMLAttributes: Record<string, any>

    The HTML attributes that should be added to the node's DOM element.

    innerDecorations: DecorationSource

    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.

    node: Node

    The node that is being rendered.

    view: EditorView

    The editor's view.