问题主要是出在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下载

本文详细介绍了在KindEditor中配置imageUploadJson和fileManagerJson路径的方法,通过复制文件到指定目录或理解相对路径关系来解决路径设置难题,并提供了Kindeditor的最新下载链接。
732

被折叠的 条评论
为什么被折叠?



