我的知识记录

请问pbootcms百度编辑器UEDITOR给超链接默认添加rel=“nofollow”标签

  1. 修改链接HTML文件

    • 文件路径:/core/extend/ueditor/dialogs/link/link.html
    • 修改第81行: javascript   'href' : href, 'target' : $G("target").checked ? "_blank" : '_self', 'title' : $G("title").value.replace(/^\s+|\s+$/g, ''), 'rel': 'nofollow', '_href': href
  2. 修改配置文件

    • 文件路径:/core/extend/ueditor/ueditor.config.js
    • 修改第370行: javascript   a: ['target', 'href', 'title', 'class', 'style','name','rel','id'], abbr: ['title', 'class', 'style'], area: ['shape', 'coords', 'href', 'alt'],

标签:百度 编辑器-百度编辑器ueditor-百度编辑器使用方法-百度开源编辑器-

更新时间:2025-04-10 23:29:19

上一篇:请问网站单页模板修改吗?网站后台如何修改标题?

下一篇:请问织梦自定义字段报错Call to a member function GetInnerText()