Skip to content

BlockSuite API Documentation / @blocksuite/blocks / PageClipboard

Class: PageClipboard

Constructors

new PageClipboard(host)

new PageClipboard(host): PageClipboard

Parameters

host: BlockElement<BlockModel<object>, BlockService<BlockModel<object>>, string>

Returns

PageClipboard

Source

packages/blocks/src/root-block/clipboard/index.ts:33

Properties

_attachmentAdapter

private _attachmentAdapter: AttachmentAdapter

Source

packages/blocks/src/root-block/clipboard/index.ts:31


_clipboardAdapter

private _clipboardAdapter: ClipboardAdapter

Source

packages/blocks/src/root-block/clipboard/index.ts:27


_disposables

protected _disposables: DisposableGroup

Source

packages/blocks/src/root-block/clipboard/index.ts:20


_htmlAdapter

private _htmlAdapter: HtmlAdapter

Source

packages/blocks/src/root-block/clipboard/index.ts:29


_imageAdapter

private _imageAdapter: ImageAdapter

Source

packages/blocks/src/root-block/clipboard/index.ts:30


_mixtextAdapter

private _mixtextAdapter: MixTextAdapter

Source

packages/blocks/src/root-block/clipboard/index.ts:28


host

host: BlockElement<BlockModel<object>, BlockService<BlockModel<object>>, string>

Source

packages/blocks/src/root-block/clipboard/index.ts:21


onPageCopy

onPageCopy: UIEventHandler

Source

packages/blocks/src/root-block/clipboard/index.ts:109


onPageCut

onPageCut: UIEventHandler

Source

packages/blocks/src/root-block/clipboard/index.ts:116


onPagePaste

onPagePaste: UIEventHandler

Source

packages/blocks/src/root-block/clipboard/index.ts:131

Accessors

_std

get private _std(): BlockStdScope

Returns

BlockStdScope

Source

packages/blocks/src/root-block/clipboard/index.ts:23

Methods

_copySelected()

private _copySelected(onCopy?): Chain<InitCommandCtx & object & CommandKeyToData<"selectedModels"> & CommandKeyToData<never>>

Parameters

onCopy?

Returns

Chain<InitCommandCtx & object & CommandKeyToData<"selectedModels"> & CommandKeyToData<never>>

Source

packages/blocks/src/root-block/clipboard/index.ts:101


_init()

protected _init(): void

Returns

void

Source

packages/blocks/src/root-block/clipboard/index.ts:51


hostConnected()

hostConnected(): void

Returns

void

Source

packages/blocks/src/root-block/clipboard/index.ts:37


hostDisconnected()

hostDisconnected(): void

Returns

void

Source

packages/blocks/src/root-block/clipboard/index.ts:47


onBlockSnapshotPaste()

onBlockSnapshotPaste(snapshot, doc, parent?, index?): void

Parameters

snapshot: BlockSnapshot

doc: Doc

parent?: string

index?: number

Returns

void

Source

packages/blocks/src/root-block/clipboard/index.ts:172