Interface: IClipboardInterfaceService
Defined in: submodules/univer/packages/ui/src/services/clipboard/clipboard-interface.service.ts:33
This interface provides an interface to access system’s clipboard.
Properties
Methods
read()
read(): Promise<ClipboardItem[]>
Defined in: submodules/univer/packages/ui/src/services/clipboard/clipboard-interface.service.ts:56
Read ClipboardItem[]
from clipboard.
Returns
Promise
<ClipboardItem
[]>
readText()
readText(): Promise<string>
Defined in: submodules/univer/packages/ui/src/services/clipboard/clipboard-interface.service.ts:51
Read plain text from clipboard. Use read() to read both plain text and html.
Returns
Promise
<string
>
plain text
write()
write(text, html): Promise<void>
Defined in: submodules/univer/packages/ui/src/services/clipboard/clipboard-interface.service.ts:45
Write both plain text and html into clipboard.
Parameters
Parameter | Type |
---|---|
text | string |
html | string |
Returns
Promise
<void
>
writeText()
writeText(text): Promise<void>
Defined in: submodules/univer/packages/ui/src/services/clipboard/clipboard-interface.service.ts:38
Write plain text into clipboard. Use write() to write both plain text and html.
Parameters
Parameter | Type |
---|---|
text | string |
Returns
Promise
<void
>