@univerjs/docs-ui v0.5.4


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

ParameterType
hookIDocClipboardHook

Returns

IDisposable


copy()

copy(sliceType?): Promise<boolean>

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

Parameters

ParameterType
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

ParameterType
options{ files: File[]; html: string; text: string; }
options.filesFile[]
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

ParameterType
itemsClipboardItem[]

Returns

Promise<boolean>