BlockSuite API Documentation / @blocksuite/blocks / PageClipboard
Class: PageClipboard
Constructors
new PageClipboard()
new PageClipboard(
host
):PageClipboard
Parameters
host
BlockComponent
<BlockModel
<object
, SignaledProps
<object
>>, BlockService
, string
>
Returns
Defined in
packages/blocks/src/root-block/clipboard/index.ts:196
Properties
_disposables
protected
_disposables:DisposableGroup
Defined in
packages/blocks/src/root-block/clipboard/index.ts:31
host
host:
BlockComponent
<BlockModel
<object
,SignaledProps
<object
>>,BlockService
,string
>
Defined in
packages/blocks/src/root-block/clipboard/index.ts:88
onPageCopy
onPageCopy:
UIEventHandler
Defined in
packages/blocks/src/root-block/clipboard/index.ts:105
onPageCut
onPageCut:
UIEventHandler
Defined in
packages/blocks/src/root-block/clipboard/index.ts:112
onPagePaste
onPagePaste:
UIEventHandler
Defined in
packages/blocks/src/root-block/clipboard/index.ts:127
Methods
_init()
protected
_init():void
Returns
void
Defined in
packages/blocks/src/root-block/clipboard/index.ts:33
hostConnected()
hostConnected():
void
Returns
void
Defined in
packages/blocks/src/root-block/clipboard/index.ts:200
hostDisconnected()
hostDisconnected():
void
Returns
void
Defined in
packages/blocks/src/root-block/clipboard/index.ts:212
onBlockSnapshotPaste()
onBlockSnapshotPaste(
snapshot
,doc
,parent
?,index
?):Promise
<null
|string
>
Parameters
snapshot
doc
parent?
string
index?
number
Returns
Promise
<null
| string
>
Defined in
packages/blocks/src/root-block/clipboard/index.ts:90