Skip to content

API > @blocksuite/blocks > getSelectedContentModels

Function: getSelectedContentModels ​

getSelectedContentModels(root, types): BaseBlockModel[]

Parameters ​

ParameterType
rootBlockSuiteRoot
types("image" | "text" | "block")[]

Returns ​

BaseBlockModel[]

Defined In ​

packages/blocks/src/page-block/utils/selection.ts:11