Skip to content

BlockSuite API Documentation / @blocksuite/blocks / EmbedOptionService

Class: EmbedOptionService

Generic extension. Extensions are used to set up the dependency injection container. In most cases, you won't need to use this class directly. We provide helper classes like CommandExtension and BlockViewExtension to make it easier to create extensions.

Extends

Implements

Constructors

new EmbedOptionService()

new EmbedOptionService(): EmbedOptionService

Returns

EmbedOptionService

Inherited from

Extension.constructor

Properties

getEmbedBlockOptions()

getEmbedBlockOptions: (url) => null | EmbedOptions

Parameters

url: string

Returns

null | EmbedOptions

Implementation of

EmbedOptionProvider.getEmbedBlockOptions

Defined in

packages/affine/shared/dist/services/embed-option-service.d.ts:17


registerEmbedBlockOptions()

registerEmbedBlockOptions: (options) => void

Parameters

options: EmbedOptions

Returns

void

Implementation of

EmbedOptionProvider.registerEmbedBlockOptions

Defined in

packages/affine/shared/dist/services/embed-option-service.d.ts:18

Methods

setup()

static setup(di): void

Parameters

di: Container

Returns

void

Overrides

Extension.setup

Defined in

packages/affine/shared/dist/services/embed-option-service.d.ts:19