BlockSuite API Documentation / @blocksuite/blocks / EmbedYoutubeService
Class: EmbedYoutubeService
Extends
Constructors
new EmbedYoutubeService(options)
new EmbedYoutubeService(
options
):EmbedYoutubeService
Parameters
• options: BlockServiceOptions
Returns
Inherited from
@blocksuite/block-std.BlockService.constructor
Source
packages/framework/block-std/dist/service/index.d.ts:16
Properties
disposables
readonly
disposables:DisposableGroup
Inherited from
@blocksuite/block-std.BlockService.disposables
Source
packages/framework/block-std/dist/service/index.d.ts:14
flavour
readonly
flavour:string
Inherited from
@blocksuite/block-std.BlockService.flavour
Source
packages/framework/block-std/dist/service/index.d.ts:13
specSlots
readonly
specSlots:BlockSpecSlots
Inherited from
@blocksuite/block-std.BlockService.specSlots
Source
packages/framework/block-std/dist/service/index.d.ts:15
std
readonly
std:BlockStdScope
Inherited from
@blocksuite/block-std.BlockService.std
Source
packages/framework/block-std/dist/service/index.d.ts:12
linkPreviewer
private
static
readonly
linkPreviewer:LinkPreviewer
Source
packages/blocks/src/embed-youtube-block/embed-youtube-service.ts:12
setLinkPreviewEndpoint
static
setLinkPreviewEndpoint: (endpoint
) =>void
=EmbedYoutubeService.linkPreviewer.setEndpoint
Parameters
• endpoint: string
Returns
void
Source
packages/blocks/src/embed-youtube-block/embed-youtube-service.ts:33
Accessors
doc
get
doc():Doc
Returns
Source
packages/framework/block-std/dist/service/index.d.ts:18
host
get
host():HTMLElement
Returns
HTMLElement
Source
packages/framework/block-std/dist/service/index.d.ts:19
selectionManager
get
selectionManager():SelectionManager
Returns
Source
packages/framework/block-std/dist/service/index.d.ts:20
uiEventDispatcher
get
uiEventDispatcher():UIEventDispatcher
Returns
Source
packages/framework/block-std/dist/service/index.d.ts:21
workspace
get
workspace():Workspace
Returns
Source
packages/framework/block-std/dist/service/index.d.ts:17
Methods
bindHotKey()
bindHotKey(
keymap
,options
?):void
Parameters
• keymap: Record
<string
, UIEventHandler
>
• options?: Object
• options.global?: boolean
Returns
void
Inherited from
@blocksuite/block-std.BlockService.bindHotKey
Source
packages/framework/block-std/dist/service/index.d.ts:28
dispose()
dispose():
void
Returns
void
Inherited from
@blocksuite/block-std.BlockService.dispose
Source
packages/framework/block-std/dist/service/index.d.ts:22
handleEvent()
handleEvent(
name
,fn
,options
?):void
Parameters
• name: "click"
| "doubleClick"
| "tripleClick"
| "pointerDown"
| "pointerMove"
| "pointerUp"
| "pointerOut"
| "dragStart"
| "dragMove"
| "dragEnd"
| "keyDown"
| "keyUp"
| "selectionChange"
| "compositionStart"
| "compositionUpdate"
| "compositionEnd"
| "cut"
| "copy"
| "paste"
| "beforeInput"
| "blur"
| "focus"
| "drop"
| "contextMenu"
| "wheel"
• fn: UIEventHandler
• options?: Object
• options.global?: boolean
Returns
void
Inherited from
@blocksuite/block-std.BlockService.handleEvent
Source
packages/framework/block-std/dist/service/index.d.ts:25
mounted()
mounted():
void
Returns
void
Overrides
@blocksuite/block-std.BlockService.mounted
Source
packages/blocks/src/embed-youtube-block/embed-youtube-service.ts:21
queryUrlData()
queryUrlData(
embedYoutubeModel
):Promise
<Partial
<EmbedYoutubeBlockUrlData
>>
Parameters
• embedYoutubeModel: EmbedYoutubeModel
Returns
Promise
<Partial
<EmbedYoutubeBlockUrlData
>>
Source
packages/blocks/src/embed-youtube-block/embed-youtube-service.ts:14
unmounted()
unmounted():
void
Returns
void
Inherited from
@blocksuite/block-std.BlockService.unmounted
Source
packages/framework/block-std/dist/service/index.d.ts:24
Generated using TypeDoc and typedoc-plugin-markdown.