隨著越來越多的站長開始重視seo了,對rel="nofollow"也在乎得多了。但是由于百度編輯器ueditor并不自帶rel="nofollow"功能,在引入其他站點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行。
1href : href,
2target : $G("target").checked ? "_blank" : _self,
3title : $G("title").value.replace(/^\s+|\s+$/g, ),
4_href:href
修改成:
1href : href,
2target : $G("target").checked ? "_blank" : _self,
3title : $G("title").value.replace(/^\s+|\s+$/g, ),
4rel: nofollow,
5_href:href
2、找到/core/extend/ueditor/ueditor.config.js,修改第370行。
1a: [target, href, title, class, style,name,id],
2abbr: [title, class, style],
3abbr: [title, class, style],
4area: [shape, coords, href, alt],
修改成:
1a: [target, href, title, class, style,name,rel,id],
2abbr: [title, class, style],
3abbr: [title, class, style],
4area: [shape, coords, href, alt],
上述兩個文件修改好就可以實現(xiàn)rel="nofollow"了,網(wǎng)站后臺測試添加鏈接,測試成功,演示圖如下。
本文鏈接:http://m.373753.com/xinwendongtai/1910.html
版權(quán)聲明:站內(nèi)所有文章皆來自網(wǎng)絡(luò)轉(zhuǎn)載,只供模板演示使用,并無任何其它意義!