@univerjs/docs-ui v0.5.0-beta.1Docs


Interface: IDocClipboardService

Methods

addClipboardHook()

addClipboardHook(hook): IDisposable

Parameters

ParameterType
hookIDocClipboardHook

Returns

IDisposable

Defined in

submodules/univer/packages/docs-ui/src/services/clipboard/clipboard.service.ts:60


copy()

copy(sliceType?): Promise<boolean>

Parameters

ParameterType
sliceType?SliceBodyType

Returns

Promise<boolean>

Defined in

submodules/univer/packages/docs-ui/src/services/clipboard/clipboard.service.ts:56


cut()

cut(): Promise<boolean>

Returns

Promise<boolean>

Defined in

submodules/univer/packages/docs-ui/src/services/clipboard/clipboard.service.ts:57


legacyPaste()

legacyPaste(options): Promise<boolean>

Parameters

ParameterType
optionsobject
options.filesFile[]
options.html?string
options.text?string

Returns

Promise<boolean>

Defined in

submodules/univer/packages/docs-ui/src/services/clipboard/clipboard.service.ts:59


paste()

paste(items): Promise<boolean>

Parameters

ParameterType
itemsClipboardItem[]

Returns

Promise<boolean>

Defined in

submodules/univer/packages/docs-ui/src/services/clipboard/clipboard.service.ts:58