国产人成精品香港三级在-国产人成精品香港三级古代-国产人成-国产全黄a一级毛片视频-日本伦理网站-日本乱码一卡二卡三卡永久

+ 收藏我們

網(wǎng)站模板

網(wǎng)站模板搜索

注冊
網(wǎng)站模板 > cms教程 > pbootcms教程 >

pbootcms百度編輯器UEDITOR給超鏈接默認(rèn)添加rel="nofollow"標(biāo)簽

AB模板網(wǎng) / 2022-02-13
隨著越來越多的站長開始重視seo了,對rel="nofollow"也在乎得多了。但是由于百度編輯器ueditor并不自帶rel="nofollow"功能,在引入其他站點(diǎn)URL鏈接的時候,就會導(dǎo)致蜘蛛流失,自己的網(wǎng)站權(quán)重下降。
 
今天AB模板網(wǎng)整理了一下,來教大家怎么改,讓ueditor的link自帶rel="nofollow"標(biāo)簽,話不多說,直接上圖。 
 
1、找到/core/extend/ueditor/dialogs/link/link.html,修改第81行。

pbootcms百度編輯器UEDITOR給超鏈接默認(rèn)添加rel="nofollow"標(biāo)簽

'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行。

pbootcms百度編輯器UEDITOR給超鏈接默認(rèn)添加rel="nofollow"標(biāo)簽

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'],

上述兩個文件修改好就可以實(shí)現(xiàn)rel="nofollow"了,網(wǎng)站后臺測試添加鏈接,測試成功,演示圖如下。

pbootcms百度編輯器UEDITOR給超鏈接默認(rèn)添加rel="nofollow"標(biāo)簽
文章搜集與網(wǎng)絡(luò),如有侵權(quán)請聯(lián)系本站,轉(zhuǎn)載請說明出處:http://www.tbwwir.cn/pbootcmsjs/9900.html
X

截屏,微信識別二維碼

微信號:wwwadminbuycn

(點(diǎn)擊微信號復(fù)制,添加好友)

  打開微信

 
咨詢
QQ在線咨詢

如無回復(fù)
請加下面的微信

添加微信客

微信客服
wwwadminbuycn