{"action":"created","issue":{"url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/7","labels_url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/7/comments","events_url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/7/events","html_url":"https://github.com/GetmeUK/ContentTools/issues/7","id":106826507,"number":7,"title":"Q: Is it possible to handle 'paste' action - any 'paste callback' function?","user":{"login":"MalyshevDmitry","id":1517140,"avatar_url":"https://avatars.githubusercontent.com/u/1517140?v=3","gravatar_id":"","url":"https://api.github.com/users/MalyshevDmitry","html_url":"https://github.com/MalyshevDmitry","followers_url":"https://api.github.com/users/MalyshevDmitry/followers","following_url":"https://api.github.com/users/MalyshevDmitry/following{/other_user}","gists_url":"https://api.github.com/users/MalyshevDmitry/gists{/gist_id}","starred_url":"https://api.github.com/users/MalyshevDmitry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MalyshevDmitry/subscriptions","organizations_url":"https://api.github.com/users/MalyshevDmitry/orgs","repos_url":"https://api.github.com/users/MalyshevDmitry/repos","events_url":"https://api.github.com/users/MalyshevDmitry/events{/privacy}","received_events_url":"https://api.github.com/users/MalyshevDmitry/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GetmeUK/ContentTools/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-16T17:57:12Z","updated_at":"2015-09-21T20:56:46Z","closed_at":"2015-09-19T00:09:46Z","body":"For example, I would like to have opportunity to copy-paste formatted data (text, images with H1-5, p, iframe and others tags) from any web page. Is it possible to save data formatting and ability to handle it by my own handler?\r\n\r\nFor example:\r\n![e5087fe5afdc52fc9f5af5fe0ddb2c2f](https://cloud.githubusercontent.com/assets/1517140/9914005/7b014f7e-5cb8-11e5-80fe-1fb4619ec36e.gif)\r\n"},"comment":{"url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/comments/142106057","html_url":"https://github.com/GetmeUK/ContentTools/issues/7#issuecomment-142106057","issue_url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/7","id":142106057,"user":{"login":"anthonyjb","id":3046287,"avatar_url":"https://avatars.githubusercontent.com/u/3046287?v=3","gravatar_id":"","url":"https://api.github.com/users/anthonyjb","html_url":"https://github.com/anthonyjb","followers_url":"https://api.github.com/users/anthonyjb/followers","following_url":"https://api.github.com/users/anthonyjb/following{/other_user}","gists_url":"https://api.github.com/users/anthonyjb/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonyjb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonyjb/subscriptions","organizations_url":"https://api.github.com/users/anthonyjb/orgs","repos_url":"https://api.github.com/users/anthonyjb/repos","events_url":"https://api.github.com/users/anthonyjb/events{/privacy}","received_events_url":"https://api.github.com/users/anthonyjb/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T20:56:46Z","updated_at":"2015-09-21T20:56:46Z","body":"So if I patch the editor as you have done and `console.log` the `clipboardData` value I get a DataTransfer object which I can use to query for pasted data (https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent).\r\n\r\nThis allows me to query the pasted data, for example: `clipboardData.getData('text/plain')`, what is the value of `clipboardData` for you?"}}