tinymce.FakeClipboard

TinyMCE FakeClipboard API.

Summary

Methods

Name Summary Defined by

FakeClipboardItem()

Create a FakeClipboardItem instance that is used when reading or writing data via the FakeClipboard API.

FakeClipboard

clear()

Clear arbitrary data on the fake clipboard.

FakeClipboard

read()

Requests arbitrary data from the fake clipboard.

FakeClipboard

write()

Writes arbitrary data to the fake clipboard.

FakeClipboard

Methods

FakeClipboardItem()

FakeClipboardItem(items: Object): FakeClipboard.FakeClipboardItem

Create a FakeClipboardItem instance that is used when reading or writing data via the FakeClipboard API.

Parameters

  • items (Object) - An object with the type as the key and any data as the value.

Return value

  • FakeClipboard.FakeClipboardItem - A new fake clipboard item to represent the specified items.


clear()

clear()

Clear arbitrary data on the fake clipboard.


read()

read(): Array

Requests arbitrary data from the fake clipboard.

Return value

  • Array - An array of FakeClipboardItems if items exist on the fake clipboard, otherwise undefined.


write()

write(data: Array)

Writes arbitrary data to the fake clipboard.

Parameters

  • data (Array) - An array of FakeClipboardItems to be written to the fake clipboard.