Skip to content

Commit 653ef66

Browse files
Christywlrogerwang
authored andcommitted
Update the wrong links and typo in Clipboard.md
1 parent a8a102c commit 653ef66

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/References/Clipboard.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ clipboard.clear();
3636
* `type` `{String}` _Optional_ the type of the data. Support `text`, `png`, `jpeg`, `html` and `rtf`. By default, `type` is set to `"text"`.
3737
* `raw` `{Boolean}` _Optional_ requiring raw image data. This option is only valid if type is `png` or `jpeg`. By default, `raw` is set to `false`.
3838

39-
Write `data` of `type` to the clipboard. This method will clear the clipboard and replace with the given `data`. Hence another call to this method will overwrite with the new one. To write multiple types of data to clipboard simultaneously, you will need to use [clip.set(clipboardDataList)](clipsetclipboardDataList) below.
39+
Write `data` of `type` to the clipboard. This method will clear the clipboard and replace with the given `data`. Hence another call to this method will overwrite with the new one. To write multiple types of data to clipboard simultaneously, you will need to use [clip.set(clipboardDataList)](#clipsetclipboarddatalist) below.
4040

4141
!!! tip "Format of Image"
4242
Images read or written from clipboard can be either JPEG or PNG. When `raw` is not set or set to `false`, the data is expected to be a valid [data URI](https://developer.mozilla.org/en-US/docs/Web/HTTP/data_URIs) encoded with Base64. When `raw` is set to `true`, the data is only the Base64 encoded image data not including the `data:<mime-type>;base64,` part.
@@ -47,7 +47,7 @@ Write `data` of `type` to the clipboard. This method will clear the clipboard an
4747

4848
## clip.set(clipboardDataList)
4949

50-
* `clipboardDataList` `{Array}` Array of `clipboardData` to be written to clipboard. See [clip.set(clipboardData)](#clipsetclipboardData) and [clip.set(data, [type, [raw]])](#clipsetdata-type-raw) for detailed arguments specification.
50+
* `clipboardDataList` `{Array}` Array of `clipboardData` to be written to clipboard. See [clip.set(clipboardData)](#clipgetclipboarddata) and [clip.set(data, [type, [raw]])](#clipsetdata-type-raw) for detailed arguments specification.
5151

5252
Multiple types of data can be written to clipboard simultaneously with this method.
5353

@@ -87,12 +87,12 @@ Get the data of `type` from clipboard.
8787

8888
## clip.get(clipboardDataList)
8989

90-
* `clipboardDataList` `{Array}` Array of `clipboardData` for reading data from clipboard. Multiple types of data can be read from clipboard simultaneously with this method. See [clip.get(clipboardData)](#clipgetclipboardData) and [clip.get([type, [raw]])](#clipgettype-raw) for detailed arguments specification.
90+
* `clipboardDataList` `{Array}` Array of `clipboardData` for reading data from clipboard. Multiple types of data can be read from clipboard simultaneously with this method. See [clip.get(clipboardData)](#clipgetclipboarddata) and [clip.get([type, [raw]])](#clipgettype-raw) for detailed arguments specification.
9191
* Returns `{Array}` array of `clipboardData` retrieved from the clipboard. Each item contains `type`, `data` and `raw` (optional) attributes.
9292

9393
## clip.readAvailableTypes()
9494

95-
* Returns `{Array}` list of available types of data in clipboard currenly. Each item is one of following types:
95+
* Returns `{Array}` list of available types of data in clipboard currently. Each item is one of following types:
9696
- `text`: plain text. Can be read by `clip.get('text')`.
9797
- `html`: HTML text. Can be read by `clip.get('html')`.
9898
- `rtf`: RTF (Rich Text Format). Can be read by `clip.get('rtf')`.

0 commit comments

Comments
 (0)