{"id":3130,"date":"2020-01-15T16:50:12","date_gmt":"2020-01-15T15:50:12","guid":{"rendered":"https:\/\/solidt.eu\/site\/?p=3130"},"modified":"2020-01-15T16:52:29","modified_gmt":"2020-01-15T15:52:29","slug":"html-5-clipboard-copy-paste","status":"publish","type":"post","link":"https:\/\/solidt.eu\/site\/html-5-clipboard-copy-paste\/","title":{"rendered":"HTML 5 clipboard copy\/paste"},"content":{"rendered":"\n<p><a href=\"https:\/\/whatwebcando.today\/\">https:\/\/whatwebcando.today\/<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/whatwebcando.today\/clipboard.html\">https:\/\/whatwebcando.today\/clipboard.html<\/a><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/ Older, synchronous API:\n\ndocument.addEventListener('cut\/copy\/paste', listener)\n\/\/    An event fired when the user invoked the particular clipboard operation (either cut, copy or paste).\nevent.clipboardData.setData('text\/plain', data)\n\/\/    Sets the data that is to be written to the clipboard by the cut or copy operations in the specified format.\nevent.clipboardData.getData('text\/plain')\n\/\/    Returns the data that has been read from the clipboard by the paste operation in the specified format.\ndocument.execCommand('cut\/copy\/paste')\n\/\/    Programatically invokes the specified clipboard operation (either cut, copy or paste) on the data or element currently having a focus.\n\n\/\/ Newer, asynchronous API:\n\nnavigator.clipboard.writeText(text)\n\/\/    Writes the data to the clipboard. Returns a Promise resolved when the operation has succeeded.\nnavigator.clipboard.readText()\n\/\/    Returns a Promise resolved with the data read from the clipboard. <\/pre>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/whatwebcando.today\/ https:\/\/whatwebcando.today\/clipboard.html<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3130","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/3130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/comments?post=3130"}],"version-history":[{"count":3,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/3130\/revisions"}],"predecessor-version":[{"id":3137,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/3130\/revisions\/3137"}],"wp:attachment":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/media?parent=3130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/categories?post=3130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/tags?post=3130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}