多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 国产editormd by Markdown * 参考文档: [http://pandao.github.io/editor.md/](http://pandao.github.io/editor.md/) >[info] 基本应用 ~~~ coreEditor = editormd("content-editormd", { width: "65%", height: 540, syncScrolling: "single", taskList: true, tocm: true, // Using [TOCM] htmlDecode: "style,script,iframe|on*", // 开启 HTML 标签解析,为了安全性,默认不开启 imageUpload: true, imageFormats: ["jpg", "jpeg", "gif", "png", "bmp", "webp"], imageUploadURL: "./php/upload.php", saveHTMLToTextarea: true, onload: function () { console.log('onload', this); //this.fullscreen(); //this.unwatch(); //this.watch().fullscreen(); //this.setMarkdown("#PHP"); //this.width("100%"); //this.height(480); //this.resize("100%", 640); }, path: "{{asset('static/editor.lib')}}/" }); ~~~ >[info] 上传配置 ~~~ /**上传图片相关配置如下*/ imageUpload: true, imageFormats: ["jpg", "jpeg", "gif", "png", "bmp", "webp"], //图片上传格式 imageUploadURL: "path/upload", onload: function () { //上传成功之后的回调 } ~~~ >[info] 获取的md格式和html格式代码赋值到editor.md中 ~~~ testEditor.setMarkdown('hello editor!'); ~~~