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

    Function getAttributes

    • Get node or mark attributes by type or name on the current editor state

      Parameters

      • state: EditorState

        The current editor state

      • typeOrName: string | NodeType | MarkType

        The node or mark type or name

      Returns Record<string, any>

      The attributes of the node or mark or an empty object