KindEditor图片上传问题
<script>
KindEditor.ready(function(K) {
/*var editor1 = K.create('textarea[name="news_content"]', {
uploadJson :'${basePath}/plugins/kindeditor/jsp/upload_json.jsp',
imageUploadJson :'${basePath}/uploadAction.do?action=uploadImg&dir=test',
fileManagerJson : '${basePath}/plugins/kindeditor/jsp/file_manager_json.jsp',
allowFileManager:true,
pasteType:1,
filterMode:true
});*/
KE.show({
id : 'ta_blog_content',
resizeMode : 1,
shadowMode : false,
allowPreviewEmoticons : false,
urlType : 'absolute',
allowUpload : true, //允许上传图片
imageUploadJson : '${basePath}/uploadAction.do?action=uploadImg&dir=tes' //服务端上传图片处理URI
});
});
这段代码让编辑器无法显示,是什么原因,但注释部分可以,我要指定图片的上传路径怎么实现
------解决方案--------------------
LZ。这个是什么?
imageUploadJson : '${basePath}/uploadAction.do?action=uploadImg&dir=tes' //服务端上传图片处理URI