Skip to content

BlockSuite API Documentation / @blocksuite/blocks / PageClipboard

Class: PageClipboard

Constructors

new PageClipboard()

new PageClipboard(host): PageClipboard

Parameters

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

Returns

PageClipboard

Source

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

Properties

_disposables

protected _disposables: DisposableGroup

Source

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


host

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

Source

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


onPageCopy

onPageCopy: UIEventHandler

Source

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


onPageCut

onPageCut: UIEventHandler

Source

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


onPagePaste

onPagePaste: UIEventHandler

Source

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

Accessors

_std

get private _std(): BlockStdScope

Returns

BlockStdScope

Source

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

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:33


_init()

protected _init(): void

Returns

void

Source

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


hostConnected()

hostConnected(): void

Returns

void

Source

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


hostDisconnected()

hostDisconnected(): void

Returns

void

Source

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


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:168