联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
内容编辑器不支持锚点的吗
类型:迅睿CMS 更新时间:2021-09-18 22:29:55

我们的内容编辑器不支持锚点的吗?试了多次实现不了

回帖
  • 迅睿框架技术-吴金辉
    #1楼    迅睿框架技术-吴金辉
    2021-09-18 22:06:57
    Chrome 0
    http://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=1&tn=baidu&wd=ueditor%E9%94%9A%E7%82%B9 试一试这种方法xunruicms:api/ueditor/ueditor.config.js
    满意答案
  • 文章
    #2楼    文章
    2021-09-18 22:08:51
    Chrome 0
    需要修改ueditor.config.js这个文件
    
    找到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 强制刷新再试就可以了


  • 彬哥
    #3楼    彬哥
    2021-09-18 22:25:27
    Chrome 0
    凡是跟编辑器有关的都可以通过百度来搜索到答案,楼上的我们是老乡呢
  • 天河
    #4楼    天河
    2021-09-18 22:29:55
    Chrome 0
    @迅睿框架技术-吴金辉:试过,我直接用链接,#1,解决的