百度ueditor超链接支持rel加上nofollow方法
在使用百度ueditor编辑器的时候,想给A标签的超链接给nofollow的属性,但是一旦加上就会被系统自动过滤掉,导致不能使用。
想要不过滤实现这个方法很简单如下
进入ueditoer编辑器根目录然后在ueditor.config.js文件内搜索whitList,找到a标签
a: ['target', 'href', 'title', 'class', 'style' ],
改为:
a: ['target', 'href', 'title', 'class', 'style', 'rel'],
其实就是在后面增加了rel。
保持就可以了。
参考文章:
https://www.cnblogs.com/renhongwei/p/6141385.html