{"action":"created","issue":{"url":"https://api.github.com/repos/editor-js/image/issues/21","repository_url":"https://api.github.com/repos/editor-js/image","labels_url":"https://api.github.com/repos/editor-js/image/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/editor-js/image/issues/21/comments","events_url":"https://api.github.com/repos/editor-js/image/issues/21/events","html_url":"https://github.com/editor-js/image/issues/21","id":430153227,"node_id":"MDU6SXNzdWU0MzAxNTMyMjc=","number":21,"title":"The plugin is not rendering the <img> tag after upload","user":{"login":"rolfo85","id":5107465,"node_id":"MDQ6VXNlcjUxMDc0NjU=","avatar_url":"https://avatars0.githubusercontent.com/u/5107465?v=4","gravatar_id":"","url":"https://api.github.com/users/rolfo85","html_url":"https://github.com/rolfo85","followers_url":"https://api.github.com/users/rolfo85/followers","following_url":"https://api.github.com/users/rolfo85/following{/other_user}","gists_url":"https://api.github.com/users/rolfo85/gists{/gist_id}","starred_url":"https://api.github.com/users/rolfo85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolfo85/subscriptions","organizations_url":"https://api.github.com/users/rolfo85/orgs","repos_url":"https://api.github.com/users/rolfo85/repos","events_url":"https://api.github.com/users/rolfo85/events{/privacy}","received_events_url":"https://api.github.com/users/rolfo85/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-04-07T14:41:18Z","updated_at":"2019-04-07T14:44:22Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI configured the image plugig and it's partially working. Basically after I upload an image, I get a never ending loader without the tag <img> with the url being created.\r\n\r\nthis is the image tool config:\r\n\r\n    `image: {\r\n          class: ImageTool,\r\n               config: {\r\n                    endpoints: {\r\n                         byFile: '/api/images/image-handler' + '?api_token=' + this.isLogged.apiToken,\r\n                    }\r\n               }\r\n     }`\r\n\r\nThis is the response from the backend (static url just for the example)\r\n\r\n    `return response()->json([\r\n            \"success\" => 1,\r\n            \"file\" => \"http://localhost:8000/storage/rte-images/rose-small.jpg\",\r\n     ]);`\r\n\r\nand this is the `outputData` that I'm console logging `onChange`\r\n\r\n`{\r\n    file: \"http://localhost:8000/storage/rte-images/rose-small.jpg\",\r\n    caption: \"\",\r\n    withBorder: false,\r\n    stretched: false,\r\n    withBackground: false\r\n}`\r\n\r\nIt's all correct. The image is properly added to the JSON with the url I'm passing in the response. And I get no errors of any kind. So it's actually working except for the fact that the image preloader keeps spinning forever and no <img> tag is added.\r\n\r\nMaybe I miss something?\r\n"},"comment":{"url":"https://api.github.com/repos/editor-js/image/issues/comments/480596499","html_url":"https://github.com/editor-js/image/issues/21#issuecomment-480596499","issue_url":"https://api.github.com/repos/editor-js/image/issues/21","id":480596499,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4MDU5NjQ5OQ==","user":{"login":"neSpecc","id":3684889,"node_id":"MDQ6VXNlcjM2ODQ4ODk=","avatar_url":"https://avatars0.githubusercontent.com/u/3684889?v=4","gravatar_id":"","url":"https://api.github.com/users/neSpecc","html_url":"https://github.com/neSpecc","followers_url":"https://api.github.com/users/neSpecc/followers","following_url":"https://api.github.com/users/neSpecc/following{/other_user}","gists_url":"https://api.github.com/users/neSpecc/gists{/gist_id}","starred_url":"https://api.github.com/users/neSpecc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neSpecc/subscriptions","organizations_url":"https://api.github.com/users/neSpecc/orgs","repos_url":"https://api.github.com/users/neSpecc/repos","events_url":"https://api.github.com/users/neSpecc/events{/privacy}","received_events_url":"https://api.github.com/users/neSpecc/received_events","type":"User","site_admin":false},"created_at":"2019-04-07T14:44:22Z","updated_at":"2019-04-07T14:44:22Z","author_association":"CONTRIBUTOR","body":"Hi. The `file` property is an object, not a string. It should contain at least an `url` property and may contain any additional fields got from your backend, such as `width`, `height`, `color` and other"}}
{"actor":{"display_login":"neSpecc"}}