Interface: IDocClipboardService
Defined in: submodules/univer/packages/docs-ui/src/services/clipboard/clipboard.service.ts:55
Methods
addClipboardHook()
addClipboardHook(hook): IDisposable
Defined in: submodules/univer/packages/docs-ui/src/services/clipboard/clipboard.service.ts:60
Parameters
Parameter | Type |
---|---|
hook | IDocClipboardHook |
Returns
copy()
copy(sliceType?): Promise<boolean>
Defined in: submodules/univer/packages/docs-ui/src/services/clipboard/clipboard.service.ts:56
Parameters
Parameter | Type |
---|---|
sliceType ? | SliceBodyType |
Returns
Promise
<boolean
>
cut()
cut(): Promise<boolean>
Defined in: submodules/univer/packages/docs-ui/src/services/clipboard/clipboard.service.ts:57
Returns
Promise
<boolean
>
legacyPaste()
legacyPaste(options): Promise<boolean>
Defined in: submodules/univer/packages/docs-ui/src/services/clipboard/clipboard.service.ts:59
Parameters
Parameter | Type |
---|---|
options | { files : File []; html : string ; text : string ; } |
options.files | File [] |
options.html ? | string |
options.text ? | string |
Returns
Promise
<boolean
>
paste()
paste(items): Promise<boolean>
Defined in: submodules/univer/packages/docs-ui/src/services/clipboard/clipboard.service.ts:58
Parameters
Parameter | Type |
---|---|
items | ClipboardItem [] |
Returns
Promise
<boolean
>