{"action":"opened","issue":{"url":"https://api.github.com/repos/nwjs/nw.js/issues/3403","labels_url":"https://api.github.com/repos/nwjs/nw.js/issues/3403/labels{/name}","comments_url":"https://api.github.com/repos/nwjs/nw.js/issues/3403/comments","events_url":"https://api.github.com/repos/nwjs/nw.js/issues/3403/events","html_url":"https://github.com/nwjs/nw.js/issues/3403","id":70686856,"number":3403,"title":"We don't execute document.execCommand() this time, because it is called recursively.","user":{"login":"broderix","id":95613,"avatar_url":"https://avatars.githubusercontent.com/u/95613?v=3","gravatar_id":"","url":"https://api.github.com/users/broderix","html_url":"https://github.com/broderix","followers_url":"https://api.github.com/users/broderix/followers","following_url":"https://api.github.com/users/broderix/following{/other_user}","gists_url":"https://api.github.com/users/broderix/gists{/gist_id}","starred_url":"https://api.github.com/users/broderix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broderix/subscriptions","organizations_url":"https://api.github.com/users/broderix/orgs","repos_url":"https://api.github.com/users/broderix/repos","events_url":"https://api.github.com/users/broderix/events{/privacy}","received_events_url":"https://api.github.com/users/broderix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-24T13:11:06Z","updated_at":"2015-04-24T13:11:06Z","closed_at":null,"body":"Hi, folks!\r\nI'm trying to clean paste-data like this:\r\n```<textarea id=\"edit456\"></textarea>```\r\n\r\n```javascript\r\nvar onpaste = function(e) {\r\n    e.preventDefault();\r\n    var text = e.clipboardData.getData(\"text/plain\");\r\n    document.execCommand(\"insertHTML\", false, text);\r\n};\r\nvar edit = document.getElementById('edit456');\r\nedit.addEventListener('paste', onpaste);\r\n````\r\n\r\nThen got warning from console: \r\n\"We don't execute document.execCommand() this time, because it is called recursively.\"\r\n\r\nAnd data will not be pasted.\r\n\r\n\r\n\r\n"}}