1.操作案例:http://editor.md.ipandao.com/examples/image-upload.html
2.在脚本里添加上传图片的代码:
3.自己定义一个接收图片的类
4.添加图片插件资源
将整个插件文件添加到项目的js目录下
5.bug修复
var jsonContainer = body.getElementsByTagName("pre")[0];
var json = (jsonContainer.innerText) ? jsonContainer.innerText : ( (jsonContainer.textContent) ? jsonContainer.textContent : null);