{"action":"created","issue":{"url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/380","repository_url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin","labels_url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/380/labels{/name}","comments_url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/380/comments","events_url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/380/events","html_url":"https://github.com/orthes/medium-editor-insert-plugin/issues/380","id":173959070,"number":380,"title":"Unable to edit image without div.medium-insert-images tag","user":{"login":"Hoiy","id":4758788,"avatar_url":"https://avatars.githubusercontent.com/u/4758788?v=3","gravatar_id":"","url":"https://api.github.com/users/Hoiy","html_url":"https://github.com/Hoiy","followers_url":"https://api.github.com/users/Hoiy/followers","following_url":"https://api.github.com/users/Hoiy/following{/other_user}","gists_url":"https://api.github.com/users/Hoiy/gists{/gist_id}","starred_url":"https://api.github.com/users/Hoiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hoiy/subscriptions","organizations_url":"https://api.github.com/users/Hoiy/orgs","repos_url":"https://api.github.com/users/Hoiy/repos","events_url":"https://api.github.com/users/Hoiy/events{/privacy}","received_events_url":"https://api.github.com/users/Hoiy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-30T08:28:50Z","updated_at":"2016-08-30T10:23:13Z","closed_at":null,"body":"I tried to load some old posts content through\r\neditor.setContent(post_content);\r\n\r\nI am not able to edit `<img>` tag while medium-insert-images plugin. Manually wrapping them around `<div class=\"medium-insert-images\">` would make them editable. My question is, what is the correct way to import these content without manually wrapping the `<img>` tags?\r\n\r\nFurthermore, I found that inserting image through medium-insert-plugin would induce a `<div class=\"medium-insert-images\">` around the image. I get my html output via\r\nvar allContents = editor.serialize();\r\nvar elContent = allContents[\"element-0\"].value;\r\n\r\nAnother question: is it possible to strip these `<div>` tags?"},"comment":{"url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/comments/243397494","html_url":"https://github.com/orthes/medium-editor-insert-plugin/issues/380#issuecomment-243397494","issue_url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/380","id":243397494,"user":{"login":"j0k3r","id":62333,"avatar_url":"https://avatars.githubusercontent.com/u/62333?v=3","gravatar_id":"","url":"https://api.github.com/users/j0k3r","html_url":"https://github.com/j0k3r","followers_url":"https://api.github.com/users/j0k3r/followers","following_url":"https://api.github.com/users/j0k3r/following{/other_user}","gists_url":"https://api.github.com/users/j0k3r/gists{/gist_id}","starred_url":"https://api.github.com/users/j0k3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j0k3r/subscriptions","organizations_url":"https://api.github.com/users/j0k3r/orgs","repos_url":"https://api.github.com/users/j0k3r/repos","events_url":"https://api.github.com/users/j0k3r/events{/privacy}","received_events_url":"https://api.github.com/users/j0k3r/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T10:23:13Z","updated_at":"2016-08-30T10:23:13Z","body":"My guess is that you need to add them when you plan to edit and remove them when you want to save content."}}
{"actor":{"display_login":"j0k3r"}}