-
货架货柜类网站pbootcms模...
-
智能机器人类网站pboot...
-
石材石业类网站pbootcms模...
-
建筑装饰设计类网站pb...
-
家政服务保姆月嫂类网站...
-
建材装饰公司类网站pb...
-
环保新能源企业集团类网...
-
供水环保设备类网站pb...
-
金属热切割设备类网站...
-
电动闸门伸缩门类网站...
-
期刊杂志类网站pbootcms模...
-
水务供水类网站pbootcms模...
-
节能设备网站pbootcms模板...
-
家政公司类网站pbootcms模...
-
珠宝首饰类网站pbootcms模...
-
网页设计类网站pbootcms模...
-
食品加工企业类网站pb...
-
纺织品加工生产类网站...
-
企业管理咨询类网站pb...
-
电脑手机维修类网站pb...
pbootcms后台添加内容使用的是百度ueditor编辑器,ueditor上传图片会自动添加title、alt属性,属性值是图片的文件名,pbootcms模板中title为图片上传后的日期数字名称,小编接下来教大家去除title、alt的属性。
1、打开\core\extend\ueditor\ueditor.all.min.js文件,搜索”imageUrlPrefix“
找到
打开\apps\admin\view\default\common\ueditor.html文件
找到
1、打开\core\extend\ueditor\ueditor.all.min.js文件,搜索”imageUrlPrefix“
找到
修改成如下代码:g.setAttribute("title",f.title||""),g.setAttribute("alt",f.original||"")
再继续找到g.setAttribute("title",""),g.setAttribute("alt","")
在这段的后面添加g.removeAttribute("id"),
2、为了后台刷新能直接看到效果,还得去给引入的js文件增加版本号?v=xxx,注意:第二步也可以通过清除浏览器缓存方式省去。g.removeAttribute("title"),
打开\apps\admin\view\default\common\ueditor.html文件
找到
修改成{CORE_DIR}/extend/ueditor/ueditor.all.min.js
{CORE_DIR}/extend/ueditor/ueditor.all.min.js?v=1


