{"action":"created","issue":{"url":"https://api.github.com/repos/margox/braft-editor/issues/74","repository_url":"https://api.github.com/repos/margox/braft-editor","labels_url":"https://api.github.com/repos/margox/braft-editor/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/margox/braft-editor/issues/74/comments","events_url":"https://api.github.com/repos/margox/braft-editor/issues/74/events","html_url":"https://github.com/margox/braft-editor/issues/74","id":300470462,"number":74,"title":"图片小需求建议, 以及bug","user":{"login":"deot","id":18424466,"avatar_url":"https://avatars2.githubusercontent.com/u/18424466?v=4","gravatar_id":"","url":"https://api.github.com/users/deot","html_url":"https://github.com/deot","followers_url":"https://api.github.com/users/deot/followers","following_url":"https://api.github.com/users/deot/following{/other_user}","gists_url":"https://api.github.com/users/deot/gists{/gist_id}","starred_url":"https://api.github.com/users/deot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deot/subscriptions","organizations_url":"https://api.github.com/users/deot/orgs","repos_url":"https://api.github.com/users/deot/repos","events_url":"https://api.github.com/users/deot/events{/privacy}","received_events_url":"https://api.github.com/users/deot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-27T02:25:35Z","updated_at":"2018-02-27T05:16:31Z","closed_at":null,"author_association":"NONE","body":"#### 需求：插入时新增一个`style`（移动端展示要求图片布满）\r\n```\r\n{\r\n    type: 'IMAGE',\r\n    name: 'New Photo',\r\n    url: \"xxxxxxxx\",\r\n    style: {\r\n        width: \"100%\"\r\n    }\r\n}\r\n```\r\n#### bug\r\n- 功能：以上插入图片方式`url`为`http:\\\\***`（`insertMedias`方法），编辑器与预览都显示图片\r\n- 问题：再次编辑时候使用`raw`，图片不显示\r\n- 分析原因：可能是插入图片时，`raw`没有发生改变，`html`改变了"},"comment":{"url":"https://api.github.com/repos/margox/braft-editor/issues/comments/368750363","html_url":"https://github.com/margox/braft-editor/issues/74#issuecomment-368750363","issue_url":"https://api.github.com/repos/margox/braft-editor/issues/74","id":368750363,"user":{"login":"margox","id":7866354,"avatar_url":"https://avatars3.githubusercontent.com/u/7866354?v=4","gravatar_id":"","url":"https://api.github.com/users/margox","html_url":"https://github.com/margox","followers_url":"https://api.github.com/users/margox/followers","following_url":"https://api.github.com/users/margox/following{/other_user}","gists_url":"https://api.github.com/users/margox/gists{/gist_id}","starred_url":"https://api.github.com/users/margox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/margox/subscriptions","organizations_url":"https://api.github.com/users/margox/orgs","repos_url":"https://api.github.com/users/margox/repos","events_url":"https://api.github.com/users/margox/events{/privacy}","received_events_url":"https://api.github.com/users/margox/received_events","type":"User","site_admin":false},"created_at":"2018-02-27T05:16:31Z","updated_at":"2018-02-27T05:16:31Z","author_association":"OWNER","body":"对于那个添加style的需求，下一版本会增加编辑图片宽高的功能。\r\n那个bug中的再次编辑，是指保存保存之后再次从服务端获取raw data么？"}}
{"actor":{"display_login":"margox"}}