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

    Function isNodeViewSelected

    • Determines whether a node view should be considered selected for the given editor selection.

      A node is considered selected when the current selection fully covers it (e.g. a NodeSelection). When selectedOnTextSelection is enabled, the node is additionally considered selected if a TextSelection is fully contained within the node's range.

      Parameters

      • selection: {
            nodeSize: number;
            pos: number;
            selectedOnTextSelection?: boolean;
            selection: Selection;
        }

        The current editor selection.

      Returns boolean

      true if the node view should render as selected.