《一步步搭建Springboot+zk+dubbo分布式微服务博客》之实战篇16:整合editormd编辑器中传图片(version20)
============/springboot-dubbo-web/src/main/resources/templates/blog/article/add.html===========
<script src="${request.contextPath}/bs3/js/jquery.min.js"></script>
<script src="${request.contextPath}/editormd/editormd.min.js"></script>
<script type="text/javascript">
var testEditor;
$(function() {
testEditor = editormd(
"test-editormd",
{
width : "100%",
height : 640,
syncScrolling : "single",
path : "${request.contextPath}/editormd/lib/",
//上传文件配置:
imageUpload : true,
imageFormats : [ "jpg", "jpeg", "gif", "png", "bmp","webp" ],
imageUploadURL : "${request.contextPath}/api/upArticlebodyimg/${articleid}",
});
/*
// or
testEdi