Skip to content

API > @blocksuite/blocks > getModelByElement

Function: getModelByElement ​

getModelByElement(element): BaseBlockModel

Parameters ​

ParameterType
elementElement

Returns ​

BaseBlockModel

Defined In ​

packages/blocks/src/_common/utils/query.ts:325