getAttributes
@blockslides/core / getAttributes
Function: getAttributes()
getAttributes(
state,typeOrName):Record<string,any>
Defined in: blockslides/packages/core/src/helpers/getAttributes.ts:14
Get node or mark attributes by type or name on the current editor state
Parameters
state
EditorState
The current editor state
typeOrName
The node or mark type or name
string | NodeType | MarkType
Returns
Record<string, any>
The attributes of the node or mark or an empty object