-
ueditor 添加锚点方式
-
需要修改 ueditor.config.js 这个文件
ueditor 添加锚点很简单,在链接处添加连接输入 #value ,然后在锚点处添加锚点输入 value
但是 ueditor 默认锚点添加会失败,因为标签转来转去, name 属性转没了。
找到 whitList ,给 a 和 img 添加 id,name,
修改 a 和 img 的值如下
a: ['target', 'href', 'title', 'class', 'style','id','name'], ... img: ['src', 'alt', 'title', 'width', 'height', 'id', '_src', 'loadingclass', 'class', 'data-latex','anchorname'],
然后 ctrl+F5 强制刷新再试就可以了
© 著作权归作者所有
下一篇: linux 重置 网卡流量
文章评论(0)