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

Properties

_attachmentAdapter

private _attachmentAdapter: AttachmentAdapter

Source

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


_clipboardAdapter

private _clipboardAdapter: ClipboardAdapter

Source

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


_disposables

protected _disposables: DisposableGroup

Source

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


_htmlAdapter

private _htmlAdapter: HtmlAdapter

Source

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


_imageAdapter

private _imageAdapter: ImageAdapter

Source

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


_mixtextAdapter

private _mixtextAdapter: MixTextAdapter

Source

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


host

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

Source

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


onPageCopy

onPageCopy: UIEventHandler

Source

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


onPageCut

onPageCut: UIEventHandler

Source

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


onPagePaste

onPagePaste: UIEventHandler

Source

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

Accessors

_std

get private _std(): BlockStdScope

Returns

BlockStdScope

Source

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

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


_init()

protected _init(): void

Returns

void

Source

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


hostConnected()

hostConnected(): void

Returns

void

Source

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


hostDisconnected()

hostDisconnected(): void

Returns

void

Source

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


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