{"action":"created","issue":{"url":"https://api.github.com/repos/ndm2/ckeditor-placeholder-elements/issues/2","labels_url":"https://api.github.com/repos/ndm2/ckeditor-placeholder-elements/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ndm2/ckeditor-placeholder-elements/issues/2/comments","events_url":"https://api.github.com/repos/ndm2/ckeditor-placeholder-elements/issues/2/events","html_url":"https://github.com/ndm2/ckeditor-placeholder-elements/issues/2","id":55460324,"number":2,"title":"Javascript error on element.$.innerText ","user":{"login":"ronan-paul","id":7871756,"avatar_url":"https://avatars.githubusercontent.com/u/7871756?v=3","gravatar_id":"","url":"https://api.github.com/users/ronan-paul","html_url":"https://github.com/ronan-paul","followers_url":"https://api.github.com/users/ronan-paul/followers","following_url":"https://api.github.com/users/ronan-paul/following{/other_user}","gists_url":"https://api.github.com/users/ronan-paul/gists{/gist_id}","starred_url":"https://api.github.com/users/ronan-paul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronan-paul/subscriptions","organizations_url":"https://api.github.com/users/ronan-paul/orgs","repos_url":"https://api.github.com/users/ronan-paul/repos","events_url":"https://api.github.com/users/ronan-paul/events{/privacy}","received_events_url":"https://api.github.com/users/ronan-paul/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ndm2/ckeditor-placeholder-elements/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ndm2/ckeditor-placeholder-elements/milestones/1","html_url":"https://github.com/ndm2/ckeditor-placeholder-elements/milestones/1.0.3","labels_url":"https://api.github.com/repos/ndm2/ckeditor-placeholder-elements/milestones/1/labels","id":1306543,"number":1,"title":"1.0.3","description":null,"creator":{"login":"ndm2","id":5031606,"avatar_url":"https://avatars.githubusercontent.com/u/5031606?v=3","gravatar_id":"","url":"https://api.github.com/users/ndm2","html_url":"https://github.com/ndm2","followers_url":"https://api.github.com/users/ndm2/followers","following_url":"https://api.github.com/users/ndm2/following{/other_user}","gists_url":"https://api.github.com/users/ndm2/gists{/gist_id}","starred_url":"https://api.github.com/users/ndm2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndm2/subscriptions","organizations_url":"https://api.github.com/users/ndm2/orgs","repos_url":"https://api.github.com/users/ndm2/repos","events_url":"https://api.github.com/users/ndm2/events{/privacy}","received_events_url":"https://api.github.com/users/ndm2/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":2,"state":"open","created_at":"2015-09-15T14:40:22Z","updated_at":"2015-09-16T13:44:19Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-01-26T09:14:46Z","updated_at":"2015-09-16T13:44:19Z","closed_at":"2015-09-16T13:44:19Z","body":"There is a hook on selectionChange in plugin.js which generates an error when element.$.innerText is not defined. \r\nI have to admit that I did not understand what the code was doing exactly, but I propose to adapt the code to avoid the error on line 209: \r\n\t\t\t\t\t\t\t\t\tif (element.$.innerText)\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tvar text = element.$.innerText.toString();\r\n\t\t\t\t\t\t\t\t\t\tif(text !== currentValue && text.match(regexp))\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tthis.setValue(text, placeholdersMap[text].label);\r\n\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n"},"comment":{"url":"https://api.github.com/repos/ndm2/ckeditor-placeholder-elements/issues/comments/140746449","html_url":"https://github.com/ndm2/ckeditor-placeholder-elements/issues/2#issuecomment-140746449","issue_url":"https://api.github.com/repos/ndm2/ckeditor-placeholder-elements/issues/2","id":140746449,"user":{"login":"ndm2","id":5031606,"avatar_url":"https://avatars.githubusercontent.com/u/5031606?v=3","gravatar_id":"","url":"https://api.github.com/users/ndm2","html_url":"https://github.com/ndm2","followers_url":"https://api.github.com/users/ndm2/followers","following_url":"https://api.github.com/users/ndm2/following{/other_user}","gists_url":"https://api.github.com/users/ndm2/gists{/gist_id}","starred_url":"https://api.github.com/users/ndm2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndm2/subscriptions","organizations_url":"https://api.github.com/users/ndm2/orgs","repos_url":"https://api.github.com/users/ndm2/repos","events_url":"https://api.github.com/users/ndm2/events{/privacy}","received_events_url":"https://api.github.com/users/ndm2/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T13:44:19Z","updated_at":"2015-09-16T13:44:19Z","body":"Fixed in #6 "}}