API > @blocksuite/blocks > getSelectedContentModels
Function: getSelectedContentModels ​
getSelectedContentModels(
root
,types
):BaseBlockModel
[]
Parameters ​
Parameter | Type |
---|---|
root | BlockSuiteRoot |
types | ("image" | "text" | "block" )[] |
Returns ​
Defined In ​
packages/blocks/src/page-block/utils/selection.ts:11