@univerjs/docs-ui v0.4.2 • Docs
Interface: IDocClipboardService
Methods
addClipboardHook()
addClipboardHook(hook): IDisposable
Parameters
Parameter | Type |
---|---|
hook | IDocClipboardHook |
Returns
Defined in
packages/docs-ui/src/services/clipboard/clipboard.service.ts:49 (opens in a new tab)
copy()
copy(sliceType?): Promise<boolean>
Parameters
Parameter | Type |
---|---|
sliceType ? | SliceBodyType |
Returns
Promise
<boolean
>
Defined in
packages/docs-ui/src/services/clipboard/clipboard.service.ts:45 (opens in a new tab)
cut()
cut(): Promise<boolean>
Returns
Promise
<boolean
>
Defined in
packages/docs-ui/src/services/clipboard/clipboard.service.ts:46 (opens in a new tab)
legacyPaste()
legacyPaste(html?, text?): Promise<boolean>
Parameters
Parameter | Type |
---|---|
html ? | string |
text ? | string |
Returns
Promise
<boolean
>
Defined in
packages/docs-ui/src/services/clipboard/clipboard.service.ts:48 (opens in a new tab)
paste()
paste(items): Promise<boolean>
Parameters
Parameter | Type |
---|---|
items | ClipboardItem [] |
Returns
Promise
<boolean
>
Defined in
packages/docs-ui/src/services/clipboard/clipboard.service.ts:47 (opens in a new tab)