伴随着越来越多网站站长逐渐高度重视seo了,对rel="nofollow"也在意的多了。但由于百度编辑器ueditor并不由自主带rel="nofollow"作用,在引进别的网站URL连接的情况下,就会造成蛛蛛外流,自已的百度权重降低。 今日AB免费模板整理了一下,来简单地怎么弄,让ueditor的link自带rel="nofollow"标识,啥也不说了,直接用图。 1、寻找/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、寻找/core/extend/ueditor/ueditor.config.js,改动第370行。 a: ['target', 'href', 'title', 'class', 'style','name','id',, abbr: ['title', 'class', 'style',, abbr: ['title', 'c...
内容已隐藏,请关注公众号输入验证码查看
本帖支持关注公众号查看
【无套路 无套路 无套路 扫描二维码关注公众号发送【验证码】收到验证码 在上面输入点击提交查看即可显示隐藏内容】
|