P52 MarkDown实现上传功能

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);

发布了199 篇原创文章 · 获赞 6 · 访问量 9019

猜你喜欢

转载自blog.csdn.net/shujuku____/article/details/104681208