{"action":"created","issue":{"url":"https://api.github.com/repos/wangfupeng1988/wangEditor/issues/70","labels_url":"https://api.github.com/repos/wangfupeng1988/wangEditor/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/wangfupeng1988/wangEditor/issues/70/comments","events_url":"https://api.github.com/repos/wangfupeng1988/wangEditor/issues/70/events","html_url":"https://github.com/wangfupeng1988/wangEditor/issues/70","id":115188750,"number":70,"title":"图片上传后回调（建议）","user":{"login":"ChrisJoy","id":1445654,"avatar_url":"https://avatars.githubusercontent.com/u/1445654?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisJoy","html_url":"https://github.com/ChrisJoy","followers_url":"https://api.github.com/users/ChrisJoy/followers","following_url":"https://api.github.com/users/ChrisJoy/following{/other_user}","gists_url":"https://api.github.com/users/ChrisJoy/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisJoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisJoy/subscriptions","organizations_url":"https://api.github.com/users/ChrisJoy/orgs","repos_url":"https://api.github.com/users/ChrisJoy/repos","events_url":"https://api.github.com/users/ChrisJoy/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisJoy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-05T01:23:19Z","updated_at":"2015-11-05T02:31:00Z","closed_at":null,"body":"现在上传后回调用用的的 iframe，个人一向不喜欢，也不好用。我现在的做法是引用jquery.form.js：\r\n$form.ajaxSubmit(function (ret) {\r\n  if (ret.Success) { editor.command(e, 'customeInsertImage', { 'url': ret.Message, 'title': title }, uploadImg_callback);\r\n  } else alert(ret.Message);\r\n});\r\n\r\n建议：把jquery.form.js里的 ajaxSubmit 抠出，集成到你的编辑器中使用"},"comment":{"url":"https://api.github.com/repos/wangfupeng1988/wangEditor/issues/comments/153934321","html_url":"https://github.com/wangfupeng1988/wangEditor/issues/70#issuecomment-153934321","issue_url":"https://api.github.com/repos/wangfupeng1988/wangEditor/issues/70","id":153934321,"user":{"login":"wangfupeng1988","id":9583120,"avatar_url":"https://avatars.githubusercontent.com/u/9583120?v=3","gravatar_id":"","url":"https://api.github.com/users/wangfupeng1988","html_url":"https://github.com/wangfupeng1988","followers_url":"https://api.github.com/users/wangfupeng1988/followers","following_url":"https://api.github.com/users/wangfupeng1988/following{/other_user}","gists_url":"https://api.github.com/users/wangfupeng1988/gists{/gist_id}","starred_url":"https://api.github.com/users/wangfupeng1988/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangfupeng1988/subscriptions","organizations_url":"https://api.github.com/users/wangfupeng1988/orgs","repos_url":"https://api.github.com/users/wangfupeng1988/repos","events_url":"https://api.github.com/users/wangfupeng1988/events{/privacy}","received_events_url":"https://api.github.com/users/wangfupeng1988/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T02:31:00Z","updated_at":"2015-11-05T02:31:00Z","body":"是啊，跨域上传一直是我觉得一个不好用的地方，好在跨域用的不是特别多。\r\n我已经下载了jquery.form.js了，抽时间阅读一下ajaxSubmit的源码试着集成一下。\r\n谢谢！"}}