您现在的位置是:首页 > cms教程 > pbootcms教程pbootcms教程
pbootcms百度编辑器UEDITOR超链接添加rel="nofollow"
刘中舟2025-04-02 17:15:05pbootcms教程已有人查阅
导读为了让 PbootCMS 的 UEditor 编辑器给超链接默认添加 rel="nofollow" 标签,你需要按照以下步骤进行修改。步骤 1: 修改 link.html 文件定位文件:找到 core/extend/ueditor/
为了让 PbootCMS 的 UEditor 编辑器给超链接默认添加 rel="nofollow" 标签,你需要按照以下步骤进行修改。
步骤 1: 修改 link.html 文件
定位文件:
找到 core/extend/ueditor/dialogs/link/link.html 文件。
修改第 81 行:
将原有的代码:
定位文件:
找到 core/extend/ueditor/ueditor.config.js 文件。
修改第 370 行:
将原有的代码:
步骤 1: 修改 link.html 文件
定位文件:
找到 core/extend/ueditor/dialogs/link/link.html 文件。
修改第 81 行:
将原有的代码:
'href' : href, 'target' : $G("target").checked ? "_blank" : '_self', 'title' : $G("title").value.replace(/^\s+|\s+$/g, ''), '_href':href
修改为:
'href' : href, 'target' : $G("target").checked ? "_blank" : '_self', 'title' : $G("title").value.replace(/^\s+|\s+$/g, ''), 'rel': 'nofollow', '_href':href
步骤 2: 修改 ueditor.config.js 文件定位文件:
找到 core/extend/ueditor/ueditor.config.js 文件。
修改第 370 行:
将原有的代码:
a: ['target', 'href', 'title', 'class', 'style','name','id'], abbr: ['title', 'class', 'style'], abbr: ['title', 'class', 'style'], area: ['shape', 'coords', 'href', 'alt'],
修改为:
a: ['target', 'href', 'title', 'class', 'style','name','rel','id'], abbr: ['title', 'class', 'style'], abbr: ['title', 'class', 'style'], area: ['shape', 'coords', 'href', 'alt'],
本文标签:
很赞哦! ()
相关文章
- 易优CMS实现eyou百度编辑器内容不自动加p标签后缀的方法
- 易优CMS百度编辑器上传大视频时HTTP请求错误怎么办?
- pbootcms内置Ueditor百度编辑器远程抓取图片开启和关闭方法
- pbootcms百度编辑器UEDITOR给超链接默认添加rel="nofollow"
- 织梦问答将FCK编辑器更换为百度编辑器的教程
- 百度编辑器(Ueditor)怎么整合到dedecms中
- dedecms5.7怎么安装百度编辑器ueditor
- 织梦cmsdede百度编辑器上传图片没有自动加水印怎么办
- dede织梦实现百度编辑器(Ueditor)上传图片加水印
- PbootCMS百度编辑器ueditor在PHP7下多图上传名字重复的解决方法
- 帝国CMS的ueditor百度编辑器路径加载错误分析和解决方法
- 帝国CMS整合ueditor 1.4.3百度编辑器的方法
随机图文
pbootcms输出当前页面完整url的标签写法
pbootcms如何输出当前页面的完整url{pboot:httpurl}{content:link}pbootcms怎么绑定多个域名?
pbootcms一个网站如何绑定多个域名?pbootcms程序绑定多个域名三个方法:1)去pbootcms官网把需要绑定的域名都授权,然后把授权码都填PbootCMS模板上传栏目缩略图宽度自动变成1000像素的解决方法
在使用PbootCMS模板时,如果你发现上传的栏目缩略图在保存后自动变成了1000像素的宽度,这通常是由于系统配置中的缩略图较大宽度设置所致。你可以通过修改配置文件来解决这个问pbootcms报错提示PHP Fatal error: Allowed memory size of 1342
客户在使用 PbootCMS 时,访问首页出现以下错误:PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in xxx\core\databa
留言与评论 (共有 条评论) |
相关标签
大家喜欢
- pbootcms模板安装后首页打开样式错乱怎么办
- PbootCMS增加上传文件类型webp、mov等文件格式扩展
- pbootcms详情页常见标签调用方法示例
- 升级pbootcms执行SQL发生错误duplicate column name: picstitle
- pbootcms获取指定栏目下面所有单页内容的方法
- pbootcms程序提示:未检测到您服务器环境的sqlite3数据库扩展,请检查php.ini中是否已经开启该扩展!另外,检测到您服务器支持pdo_sqlite扩展,您也可以修改数据库配置连接驱动为p
- PBootCMS模板安装后首页样式错乱怎么办
- pbootcms后台分页太多指定分页栏,pbootcms后台开启页码选择栏
- PbootCMS制作个性分页条单页/总页数效果的代码实例
- pbootcms模板内页如何调用相关文章的代码示例