标签:pat div host option nbsp theme strong atm https
找到kindeditor插件kindeditor-all.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;
作者:weijun-w
来源:CSDN
原文:https://blog.csdn.net/qq_37705048/article/details/80936820
关于富文本kindeditor中上传本地图片成功后获取到的图片路径是相对路径修改为绝对路径
标签:pat div host option nbsp theme strong atm https
原文地址:https://www.cnblogs.com/moil/p/11077585.html