问题主要是出在imageUploadJson、fileManagerJson的路径上,这两个文件在kindeditor/jsp/中,这里的路径实际上是相对于kindeditor/plugins/image/image.html的位置,搞清楚这个关系,就知道怎么设置这两个参数了。
如果嫌路径麻烦,就直接把这两个文件复制到kindeditor/plugins/image/文件夹下,像我那样写就好了
KE.show( {id : 'content',imageUploadJson : 'upload_json.jsp',fileManagerJson : 'file_manager_json.jsp',allowFileManager : true,afterCreate : function(id) {KE.event.ctrl(document, 13, function() {KE.util.setData(id);document.forms['example'].submit();});KE.event.ctrl(KE.g[id].iframeDoc, 13, function() {KE.util.setData(id);document.forms['example'].submit();});}});
kindeditor3.5.5-zh_CN下载
/source/3494050