Leo108's Blog
  • 首页
  • 版权声明
  • 联系我

kindeditor

A collection of 1 post

kindeditor

kindeditor固定浮动工具栏插件

当kindeditor开启自动高度插件(autoHeightMode)时,如果编辑器内容比较多,编辑靠下方的内容就需要不断的上下拖动,而ueditor在这方面做的就比较好,工具栏会随着页面往下而固定在页面的顶端,所以今天就简单写了一个kindeditor的插件。 github链接 使用方法也很简单,在引入kindeditor.js之后引入fixtoolbar.js文件(注意顺序不能错),初始化kindeditor的时候增加一个fixToolBar=true的参数即可。 下面是demo: 使用前 使用后 (autoHeight插件有个bug,需要用鼠标点击一下编辑器才会变长) 构建好的文件下载: kindeditor-all.js kindeditor-all-min.js (引入all.js之后就不需要再单独引入fixtoolbar.js了)

  • Leo Chen
    Leo Chen
1 min read
Leo108's Blog © 2019
Latest Posts Ghost