kindeditor上传图片或文件显示绝对路径(带域名)的方法很简单,就是设置一下urlType为domain即可.如下代码

  KindEditor.ready(function (K) {
        editor = K.create('textarea[name="Content"]', {
            uploadJson: '/upload_json.aspx',
            fileManagerJson: '/file_manager_json.aspx',
            allowFileManager: true,
            urlType:'domain'
        });
    });

另外,附下urlType属性的 参数说明:
改变上传URL路径,可设置空、relative、absolute、domain。 空为不修改URL,relative为相对路径,absolute为绝对路径,domain为带域名的绝对路径。

以上就是【kindeditor上传图片或文件显示绝对路径(带域名)】的全部内容了,欢迎留言评论进行交流!

赞(0) 踩(0)
发表我的评论

最新评论

  1. 暂无评论