鼓捣好了登陆,进入页面,现在鼓捣日志编辑界面的功能。
找到kindeditor插件kindeditor-all.js有的或者是kindeditor.js,找到urltype的设置,
K.options = { designMode : true, fullscreenMode : false, filterMode : true, wellFormatMode : true, shadowMode : true, loadStyleMode : true, basePath : K.basePath, themesPath : K.basePath + ‘themes/‘, langPath : K.basePath + ‘lang/‘, pluginsPath : K.basePath + ‘plugins/‘, themeType : ‘default‘, langType : ‘zh-CN‘, urlType : ‘absolute‘, newlineTag : ‘p‘,
默认为空,可以改为absolute。然后全局搜索absolute,找到下面一行代码:
if (mode === ‘relative‘) { url = getRelativePath(host + pathname, 0).substr(2); } else if (mode === ‘absolute‘) { // if (url.substr(0, host.length) === host) { // url = url.substr(host.length); // } } return url;
使用kindeditor中图片上传后插入不显示绝对路径的修改办法
原文:https://www.cnblogs.com/moil/p/11053237.html