{"action":"created","issue":{"url":"https://api.github.com/repos/jpuri/html-to-draftjs/issues/42","repository_url":"https://api.github.com/repos/jpuri/html-to-draftjs","labels_url":"https://api.github.com/repos/jpuri/html-to-draftjs/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/jpuri/html-to-draftjs/issues/42/comments","events_url":"https://api.github.com/repos/jpuri/html-to-draftjs/issues/42/events","html_url":"https://github.com/jpuri/html-to-draftjs/issues/42","id":275970670,"number":42,"title":"Unknown DraftEntity key: null.","user":{"login":"antiantian","id":23133017,"avatar_url":"https://avatars3.githubusercontent.com/u/23133017?v=4","gravatar_id":"","url":"https://api.github.com/users/antiantian","html_url":"https://github.com/antiantian","followers_url":"https://api.github.com/users/antiantian/followers","following_url":"https://api.github.com/users/antiantian/following{/other_user}","gists_url":"https://api.github.com/users/antiantian/gists{/gist_id}","starred_url":"https://api.github.com/users/antiantian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antiantian/subscriptions","organizations_url":"https://api.github.com/users/antiantian/orgs","repos_url":"https://api.github.com/users/antiantian/repos","events_url":"https://api.github.com/users/antiantian/events{/privacy}","received_events_url":"https://api.github.com/users/antiantian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-22T07:38:28Z","updated_at":"2018-03-05T18:23:08Z","closed_at":null,"author_association":"NONE","body":"When using plug-in html-to-draftjs, if there are a lot of inline styles in the text, and multiple images will be wrong. \r\n\r\n```\r\n Error: Unknown DraftEntity key: null.\r\n    at invariant (roadhog.dll.js:5142)\r\n    at Object.__get (roadhog.dll.js:35372)\r\n    at ContentState.getEntity (roadhog.dll.js:45659)\r\n    at eval (react-draft-wysiwyg.js?3aba:66)\r\n    at DraftEditorContents.render (roadhog.dll.js:158320)\r\n    at roadhog.dll.js:113670\r\n    at measureLifeCyclePerf (roadhog.dll.js:112950)\r\n    at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (roadhog.dll.js:113669)\r\n    at ReactCompositeComponentWrapper._renderValidatedComponent (roadhog.dll.js:113696)\r\n    at ReactCompositeComponentWrapper.performInitialMount (roadhog.dll.js:113236)\r\n\r\n```\r\nhtml like this is wrong \r\n```\r\n<p>sdad</p>\r\n<p>fsasf&nbsp;</p>\r\n<p>dsfafa</p>\r\n<p></p>\r\n<img src=\"http://qqd.oss-cn-shanghai.aliyuncs.com/qqd/files/image/1511319379141.jpg?E…OSSAccessKeyId=LTAIL65DTXQAWPOw&Signature=aZe%2BHxuxvugALiJat3cck0a8xKk%3D\" alt=\"\" style=\"float:none;height: auto;width: 100px\"/>\r\n<p>sdfsfsdfsdfdsffsf</p>\r\n<p>sfadasdffdgnsmgngdsfsf</p>\r\n<p><span style=\"color: rgb(36,41,46);background-color: rgb(255,255,255);font-size: 14px;\">The example is a bit misleading. It probably shouldn't try to use</span> <span style=\"color: rgb(36,41,46);background-color: rgb(255,255,255);font-size: 14px;\"><code>img</code></span> <span style=\"color: rgb(36,41,46);background-color: rgb(255,255,255);font-size: 14px;\">directly as the atomic block, but should instead use a wrapper div and apply the width to that. Then the</span> <span style=\"color: rgb(36,41,46);background-color: rgb(255,255,255);font-size: 14px;\"><code>img</code></span> <span style=\"color: rgb(36,41,46);background-color: rgb(255,255,255);font-size: 14px;\">can be an arbitrary width, but the div width should remain 100%.</span></p>\r\n<img src=\"http://qqd.oss-cn-shanghai.aliyuncs.com/qqd/files/image/1511319471896.jpg?E…OSSAccessKeyId=LTAIL65DTXQAWPOw&Signature=jm9S1ji7g57sDn%2B3zQg5bfW3KYY%3D\" alt=\"\" style=\"float:none;height: auto;width: 200px\"/>\r\n```\r\nA html string like this will display normally:\r\n\r\n```\r\n<p>222</p>\r\n<p>kl khjhj jk hk&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<img src=\"http://qqd.oss-cn-shanghai.aliyuncs.com/qqd/files/image/1511314523589.jpg?E…2&OSSAccessKeyId=LTAIL65DTXQAWPOw&Signature=sVUmBEUhZzrm4QlJuUZQNPTFW4o%3D\" alt=\"\" style=\"float:none;height: auto;width: 100px\"/>\r\n<p>dsaad&nbsp;</p>\r\n<p>dfafafasfdaf</p>\r\n<p>&nbsp;</p>\r\n<img src=\"http://qqd.oss-cn-shanghai.aliyuncs.com/qqd/files/image/1511323398697.jpg?E…0&OSSAccessKeyId=LTAIL65DTXQAWPOw&Signature=E6vctlCqQxORqScZZLlP5ogg1sQ%3D\" alt=\"\" style=\"float:none;height: auto;width: auto\"/>\r\n<p>dsdadadadadas</p>\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jpuri/html-to-draftjs/issues/comments/370514213","html_url":"https://github.com/jpuri/html-to-draftjs/issues/42#issuecomment-370514213","issue_url":"https://api.github.com/repos/jpuri/html-to-draftjs/issues/42","id":370514213,"user":{"login":"ziogaschr","id":802700,"avatar_url":"https://avatars0.githubusercontent.com/u/802700?v=4","gravatar_id":"","url":"https://api.github.com/users/ziogaschr","html_url":"https://github.com/ziogaschr","followers_url":"https://api.github.com/users/ziogaschr/followers","following_url":"https://api.github.com/users/ziogaschr/following{/other_user}","gists_url":"https://api.github.com/users/ziogaschr/gists{/gist_id}","starred_url":"https://api.github.com/users/ziogaschr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziogaschr/subscriptions","organizations_url":"https://api.github.com/users/ziogaschr/orgs","repos_url":"https://api.github.com/users/ziogaschr/repos","events_url":"https://api.github.com/users/ziogaschr/events{/privacy}","received_events_url":"https://api.github.com/users/ziogaschr/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T18:23:08Z","updated_at":"2018-03-05T18:23:08Z","author_association":"NONE","body":"I have the same issue, did you found any solution?"}}
{"actor":{"display_login":"ziogaschr"}}