clipboard.json 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. {
  2. "title":"Clipboard API",
  3. "description":"API to provide copy, cut and paste events as well as provide access to the OS clipboard.",
  4. "spec":"http://www.w3.org/TR/clipboard-apis/",
  5. "status":"wd",
  6. "links":[
  7. {
  8. "url":"https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent",
  9. "title":"MDN page on ClipboardEvent"
  10. },
  11. {
  12. "url":"https://www.lucidchart.com/techblog/2014/12/02/definitive-guide-copying-pasting-javascript/",
  13. "title":"Guide on cross-platform clipboard access"
  14. }
  15. ],
  16. "bugs":[
  17. {
  18. "description":"Before Firefox 41, `queryCommandEnabled` and `execCommand` with arguments `cut`, `copy` or `paste` would throw errors instead of return `false`."
  19. }
  20. ],
  21. "categories":[
  22. "JS API"
  23. ],
  24. "stats":{
  25. "ie":{
  26. "5.5":"a #1 #2 #5",
  27. "6":"a #1 #2 #5",
  28. "7":"a #1 #2 #5",
  29. "8":"a #1 #2 #5",
  30. "9":"a #1 #2 #5",
  31. "10":"a #1 #2 #5",
  32. "11":"a #1 #2 #5"
  33. },
  34. "edge":{
  35. "12":"a #1 #2 #5",
  36. "13":"a #1 #2 #5",
  37. "14":"a #1 #2 #5",
  38. "15":"a #1 #2 #5"
  39. },
  40. "firefox":{
  41. "2":"n",
  42. "3":"n",
  43. "3.5":"n",
  44. "3.6":"n",
  45. "4":"n",
  46. "5":"n",
  47. "6":"n",
  48. "7":"n",
  49. "8":"n",
  50. "9":"n",
  51. "10":"n",
  52. "11":"n",
  53. "12":"n",
  54. "13":"n",
  55. "14":"n",
  56. "15":"n",
  57. "16":"n",
  58. "17":"n",
  59. "18":"n",
  60. "19":"n",
  61. "20":"n",
  62. "21":"n",
  63. "22":"a #2 #3",
  64. "23":"a #2 #3",
  65. "24":"a #2 #3",
  66. "25":"a #2 #3",
  67. "26":"a #2 #3",
  68. "27":"a #2 #3",
  69. "28":"a #2 #3",
  70. "29":"a #2 #3",
  71. "30":"a #2 #3",
  72. "31":"a #2 #3",
  73. "32":"a #2 #3",
  74. "33":"a #2 #3",
  75. "34":"a #2 #3",
  76. "35":"a #2 #3",
  77. "36":"a #2 #3",
  78. "37":"a #2 #3",
  79. "38":"a #2 #3",
  80. "39":"a #2 #3",
  81. "40":"a #2 #3",
  82. "41":"a #6",
  83. "42":"a #6",
  84. "43":"a #6",
  85. "44":"a #6",
  86. "45":"a #6",
  87. "46":"a #6",
  88. "47":"a #6",
  89. "48":"a #6",
  90. "49":"a #6",
  91. "50":"a #6",
  92. "51":"a #6",
  93. "52":"a #6",
  94. "53":"a #6"
  95. },
  96. "chrome":{
  97. "4":"n",
  98. "5":"n",
  99. "6":"n",
  100. "7":"n",
  101. "8":"n",
  102. "9":"n",
  103. "10":"n",
  104. "11":"n",
  105. "12":"n",
  106. "13":"a #3 #5",
  107. "14":"a #3 #5",
  108. "15":"a #3 #5",
  109. "16":"a #3 #5",
  110. "17":"a #3 #5",
  111. "18":"a #3 #5",
  112. "19":"a #3 #5",
  113. "20":"a #3 #5",
  114. "21":"a #3 #5",
  115. "22":"a #3 #5",
  116. "23":"a #3 #5",
  117. "24":"a #3 #5",
  118. "25":"a #3 #5",
  119. "26":"a #3 #5",
  120. "27":"a #3 #5",
  121. "28":"a #3 #5",
  122. "29":"a #3 #5",
  123. "30":"a #3 #5",
  124. "31":"a #3 #5",
  125. "32":"a #3 #5",
  126. "33":"a #3 #5",
  127. "34":"a #3 #5",
  128. "35":"a #3 #5",
  129. "36":"a #3 #5",
  130. "37":"a #3 #5",
  131. "38":"a #3 #5",
  132. "39":"a #3 #5",
  133. "40":"a #3 #5",
  134. "41":"a #3 #5",
  135. "42":"a #3 #5",
  136. "43":"a #5 #7",
  137. "44":"a #5 #7",
  138. "45":"a #5 #7",
  139. "46":"a #5 #7",
  140. "47":"a #5 #7",
  141. "48":"a #5 #7",
  142. "49":"a #5 #7",
  143. "50":"a #5 #7",
  144. "51":"a #5 #7",
  145. "52":"a #5 #7",
  146. "53":"a #5 #7",
  147. "54":"a #5 #7",
  148. "55":"a #5 #7",
  149. "56":"a #5 #7",
  150. "57":"a #5 #7",
  151. "58":"a #5 #7"
  152. },
  153. "safari":{
  154. "3.1":"u",
  155. "3.2":"u",
  156. "4":"a #2 #3 #5",
  157. "5":"a #2 #3 #5",
  158. "5.1":"a #2 #3 #5",
  159. "6":"a #2 #3 #5",
  160. "6.1":"a #2 #3 #5",
  161. "7":"a #2 #3 #5",
  162. "7.1":"a #2 #3 #5",
  163. "8":"a #2 #3 #5",
  164. "9":"a #2 #3 #5",
  165. "9.1":"a #2 #3 #5",
  166. "10":"a #2 #5",
  167. "TP":"a #2 #5"
  168. },
  169. "opera":{
  170. "9":"n",
  171. "9.5-9.6":"n",
  172. "10.0-10.1":"n",
  173. "10.5":"n",
  174. "10.6":"n",
  175. "11":"n",
  176. "11.1":"n",
  177. "11.5":"n",
  178. "11.6":"n",
  179. "12":"u",
  180. "12.1":"a #3",
  181. "15":"a #3 #5",
  182. "16":"a #3 #5",
  183. "17":"a #3 #5",
  184. "18":"a #3 #5",
  185. "19":"a #3 #5",
  186. "20":"a #3 #5",
  187. "21":"a #3 #5",
  188. "22":"a #3 #5",
  189. "23":"a #3 #5",
  190. "24":"a #3 #5",
  191. "25":"a #3 #5",
  192. "26":"a #3 #5",
  193. "27":"a #3 #5",
  194. "28":"a #3 #5",
  195. "29":"a #3 #5",
  196. "30":"a #5 #7",
  197. "31":"a #5 #7",
  198. "32":"a #5 #7",
  199. "33":"a #5 #7",
  200. "34":"a #5 #7",
  201. "35":"a #5 #7",
  202. "36":"a #5 #7",
  203. "37":"a #5 #7",
  204. "38":"a #5 #7",
  205. "39":"a #5 #7",
  206. "40":"a #5 #7",
  207. "41":"a #5 #7",
  208. "42":"a #5 #7",
  209. "43":"a #5 #7",
  210. "44":"a #5 #7"
  211. },
  212. "ios_saf":{
  213. "3.2":"n",
  214. "4.0-4.1":"n",
  215. "4.2-4.3":"n",
  216. "5.0-5.1":"a #2 #3 #5",
  217. "6.0-6.1":"a #2 #3 #5",
  218. "7.0-7.1":"a #2 #3 #5",
  219. "8":"a #2 #3 #5",
  220. "8.1-8.4":"a #2 #3 #5",
  221. "9.0-9.2":"a #2 #3 #5",
  222. "9.3":"a #2 #3 #5",
  223. "10-10.1":"a #2 #3 #5"
  224. },
  225. "op_mini":{
  226. "all":"n"
  227. },
  228. "android":{
  229. "2.1":"n",
  230. "2.2":"n",
  231. "2.3":"n",
  232. "3":"n",
  233. "4":"n",
  234. "4.1":"n",
  235. "4.2-4.3":"n",
  236. "4.4":"a #2 #5",
  237. "4.4.3-4.4.4":"a #2 #5",
  238. "53":"a #2 #5"
  239. },
  240. "bb":{
  241. "7":"n",
  242. "10":"a #2 #5"
  243. },
  244. "op_mob":{
  245. "10":"n",
  246. "11":"n",
  247. "11.1":"n",
  248. "11.5":"n",
  249. "12":"n",
  250. "12.1":"u",
  251. "37":"a #4 #5"
  252. },
  253. "and_chr":{
  254. "55":"a #5"
  255. },
  256. "and_ff":{
  257. "50":"a #4"
  258. },
  259. "ie_mob":{
  260. "10":"n",
  261. "11":"n"
  262. },
  263. "and_uc":{
  264. "11":"n"
  265. },
  266. "samsung":{
  267. "4":"a #2 #5"
  268. }
  269. },
  270. "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.",
  271. "notes_by_num":{
  272. "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.",
  273. "2":"Only fires `copy` event on a valid selection and only `cut` and `paste` in focused editable fields.",
  274. "3":"Only supports OS clipboard reading/writing via shortcut keys, not through `document.execCommand()`.",
  275. "4":"Only supports `paste` event (on focused editable field).",
  276. "5":"Does not support the `ClipboardEvent` constructor",
  277. "6":"Supports `cut` & `copy` events without a focused editable field, but not `paste` (presumably for security reasons)",
  278. "7":"Supports `cut` & `copy` events without a focused editable field, but does not fire `paste` with `document.execCommand('paste')` "
  279. },
  280. "usage_perc_y":0,
  281. "usage_perc_a":82.87,
  282. "ucprefix":false,
  283. "parent":"",
  284. "keywords":"cut,copy,paste,clipboarddata,clipboardevent",
  285. "ie_id":"clipboardapi",
  286. "chrome_id":"",
  287. "firefox_id":"",
  288. "webkit_id":"",
  289. "shown":true
  290. }