API > @blocksuite/blocks > getModelByBlockElement
Function: getModelByBlockElement ​
getModelByBlockElement(
element
):BaseBlockModel
<object
>
Returns the model of the block element.
Parameters ​
Parameter | Type |
---|---|
element | Element |
Returns ​
BaseBlockModel
< object
>
Defined In ​
packages/blocks/src/_common/utils/query.ts:625