clipboard.json
7.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
{
"title":"Synchronous Clipboard API",
"description":"API to provide copy, cut and paste events as well as provide access to the OS clipboard.",
"spec":"https://www.w3.org/TR/clipboard-apis/",
"status":"wd",
"links":[
{
"url":"https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent",
"title":"MDN Web Docs - ClipboardEvent"
},
{
"url":"https://www.lucidchart.com/techblog/2014/12/02/definitive-guide-copying-pasting-javascript/",
"title":"Guide on cross-platform clipboard access"
}
],
"bugs":[
{
"description":"Before Firefox 41, `queryCommandEnabled` and `execCommand` with arguments `cut`, `copy` or `paste` would throw errors instead of return `false`."
}
],
"categories":[
"JS API"
],
"stats":{
"ie":{
"5.5":"a #1 #2 #5",
"6":"a #1 #2 #5",
"7":"a #1 #2 #5",
"8":"a #1 #2 #5",
"9":"a #1 #2 #5",
"10":"a #1 #2 #5",
"11":"a #1 #2 #5"
},
"edge":{
"12":"a #1 #2 #5",
"13":"a #1 #2 #5",
"14":"a #1 #2 #5",
"15":"a #1 #2 #5",
"16":"a #1 #2 #5",
"17":"a #2",
"18":"a #2"
},
"firefox":{
"2":"n",
"3":"n",
"3.5":"n",
"3.6":"n",
"4":"n",
"5":"n",
"6":"n",
"7":"n",
"8":"n",
"9":"n",
"10":"n",
"11":"n",
"12":"n",
"13":"n",
"14":"n",
"15":"n",
"16":"n",
"17":"n",
"18":"n",
"19":"n",
"20":"n",
"21":"n",
"22":"a #2 #3",
"23":"a #2 #3",
"24":"a #2 #3",
"25":"a #2 #3",
"26":"a #2 #3",
"27":"a #2 #3",
"28":"a #2 #3",
"29":"a #2 #3",
"30":"a #2 #3",
"31":"a #2 #3",
"32":"a #2 #3",
"33":"a #2 #3",
"34":"a #2 #3",
"35":"a #2 #3",
"36":"a #2 #3",
"37":"a #2 #3",
"38":"a #2 #3",
"39":"a #2 #3",
"40":"a #2 #3",
"41":"a #6",
"42":"a #6",
"43":"a #6",
"44":"a #6",
"45":"a #6",
"46":"a #6",
"47":"a #6",
"48":"a #6",
"49":"a #6",
"50":"a #6",
"51":"a #6",
"52":"a #6",
"53":"a #6",
"54":"a #6",
"55":"a #6",
"56":"a #6",
"57":"a #6",
"58":"a #6",
"59":"a #6",
"60":"a #6",
"61":"a #6",
"62":"a #6",
"63":"a #6"
},
"chrome":{
"4":"n",
"5":"n",
"6":"n",
"7":"n",
"8":"n",
"9":"n",
"10":"n",
"11":"n",
"12":"n",
"13":"a #3 #5",
"14":"a #3 #5",
"15":"a #3 #5",
"16":"a #3 #5",
"17":"a #3 #5",
"18":"a #3 #5",
"19":"a #3 #5",
"20":"a #3 #5",
"21":"a #3 #5",
"22":"a #3 #5",
"23":"a #3 #5",
"24":"a #3 #5",
"25":"a #3 #5",
"26":"a #3 #5",
"27":"a #3 #5",
"28":"a #3 #5",
"29":"a #3 #5",
"30":"a #3 #5",
"31":"a #3 #5",
"32":"a #3 #5",
"33":"a #3 #5",
"34":"a #3 #5",
"35":"a #3 #5",
"36":"a #3 #5",
"37":"a #3 #5",
"38":"a #3 #5",
"39":"a #3 #5",
"40":"a #3 #5",
"41":"a #3 #5",
"42":"a #3 #5",
"43":"a #5 #7",
"44":"a #5 #7",
"45":"a #5 #7",
"46":"a #5 #7",
"47":"a #5 #7",
"48":"a #5 #7",
"49":"a #5 #7",
"50":"a #5 #7",
"51":"a #5 #7",
"52":"a #5 #7",
"53":"a #5 #7",
"54":"a #5 #7",
"55":"a #5 #7",
"56":"a #5 #7",
"57":"a #5 #7",
"58":"a #5 #7",
"59":"a #5 #7",
"60":"a #5 #7",
"61":"a #5 #7",
"62":"a #5 #7",
"63":"a #5 #7",
"64":"a #5 #7",
"65":"a #5 #7",
"66":"a #5 #7",
"67":"a #5 #7",
"68":"a #5 #7",
"69":"a #5 #7",
"70":"a #5 #7"
},
"safari":{
"3.1":"u",
"3.2":"u",
"4":"a #2 #3 #5",
"5":"a #2 #3 #5",
"5.1":"a #2 #3 #5",
"6":"a #2 #3 #5",
"6.1":"a #2 #3 #5",
"7":"a #2 #3 #5",
"7.1":"a #2 #3 #5",
"8":"a #2 #3 #5",
"9":"a #2 #3 #5",
"9.1":"a #2 #3 #5",
"10":"a #2 #5",
"10.1":"a #2 #5",
"11":"a #2 #5",
"11.1":"a #2 #5",
"12":"a #2 #5",
"TP":"a #2 #5"
},
"opera":{
"9":"n",
"9.5-9.6":"n",
"10.0-10.1":"n",
"10.5":"n",
"10.6":"n",
"11":"n",
"11.1":"n",
"11.5":"n",
"11.6":"n",
"12":"u",
"12.1":"a #3",
"15":"a #3 #5",
"16":"a #3 #5",
"17":"a #3 #5",
"18":"a #3 #5",
"19":"a #3 #5",
"20":"a #3 #5",
"21":"a #3 #5",
"22":"a #3 #5",
"23":"a #3 #5",
"24":"a #3 #5",
"25":"a #3 #5",
"26":"a #3 #5",
"27":"a #3 #5",
"28":"a #3 #5",
"29":"a #3 #5",
"30":"a #5 #7",
"31":"a #5 #7",
"32":"a #5 #7",
"33":"a #5 #7",
"34":"a #5 #7",
"35":"a #5 #7",
"36":"a #5 #7",
"37":"a #5 #7",
"38":"a #5 #7",
"39":"a #5 #7",
"40":"a #5 #7",
"41":"a #5 #7",
"42":"a #5 #7",
"43":"a #5 #7",
"44":"a #5 #7",
"45":"a #5 #7",
"46":"a #5 #7",
"47":"a #5 #7",
"48":"a #5 #7",
"49":"a #5 #7",
"50":"a #5 #7",
"51":"a #5 #7",
"52":"a #5 #7",
"53":"a #5 #7"
},
"ios_saf":{
"3.2":"n",
"4.0-4.1":"n",
"4.2-4.3":"n",
"5.0-5.1":"a #2 #3 #5",
"6.0-6.1":"a #2 #3 #5",
"7.0-7.1":"a #2 #3 #5",
"8":"a #2 #3 #5",
"8.1-8.4":"a #2 #3 #5",
"9.0-9.2":"a #2 #3 #5",
"9.3":"a #2 #3 #5",
"10.0-10.2":"a #2 #3 #5",
"10.3":"a #2 #3 #5",
"11.0-11.2":"a #2 #3 #5",
"11.3-11.4":"a #2 #3 #5",
"12":"a #2 #3 #5"
},
"op_mini":{
"all":"n"
},
"android":{
"2.1":"n",
"2.2":"n",
"2.3":"n",
"3":"n",
"4":"n",
"4.1":"n",
"4.2-4.3":"n",
"4.4":"a #2 #5",
"4.4.3-4.4.4":"a #2 #5",
"67":"a #2 #5"
},
"bb":{
"7":"n",
"10":"a #2 #5"
},
"op_mob":{
"10":"n",
"11":"n",
"11.1":"n",
"11.5":"n",
"12":"n",
"12.1":"u",
"46":"a #4 #5"
},
"and_chr":{
"67":"a #5"
},
"and_ff":{
"60":"a #4"
},
"ie_mob":{
"10":"n",
"11":"n"
},
"and_uc":{
"11.8":"n"
},
"samsung":{
"4":"a #2 #5",
"5":"a #5",
"6.2":"a #5",
"7.2":"a #5"
},
"and_qq":{
"1.2":"a #5 #7"
},
"baidu":{
"7.12":"a #5"
}
},
"notes":"Internet Explorer will display a security prompt for access to the OS clipboard.\r\n\r\nChrome 42+, Opera 29+ and Firefox 41+ support clipboard reading/writing only when part of a user action (click, keydown, etc).\r\n\r\nFirefox 40- users [can enable support](https://developer.mozilla.org/en-US/docs/Midas/Security_preferences) with a security preference setting.",
"notes_by_num":{
"1":"Only supports `Text` and `URL` data types and uses [a non-standard method](http://msdn.microsoft.com/en-us/library/ie/ms535220%28v=vs.85%29.aspx) of interacting with the clipboard.",
"2":"Only fires `copy` event on a valid selection and only `cut` and `paste` in focused editable fields.",
"3":"Only supports OS clipboard reading/writing via shortcut keys, not through `document.execCommand()`.",
"4":"Only supports `paste` event (on focused editable field).",
"5":"Does not support the `ClipboardEvent` constructor",
"6":"Supports `cut` & `copy` events without a focused editable field, but not `paste` (presumably for security reasons)",
"7":"Supports `cut` & `copy` events without a focused editable field, but does not fire `paste` with `document.execCommand('paste')` "
},
"usage_perc_y":0,
"usage_perc_a":86.46,
"ucprefix":false,
"parent":"",
"keywords":"cut,copy,paste,clipboarddata,clipboardevent",
"ie_id":"clipboardapi",
"chrome_id":"",
"firefox_id":"",
"webkit_id":"",
"shown":true
}