easyui-ueditor

在基于Easyui的项目开发中遇到了富文本编辑器的兼容问题,之前一直使用 夏悸 贡献的kindeditor的easyui插件,但是遇到了在IE6/7/8下焦点问题的Bug,后来选择了百度的U Editor,但是网上未搜索到相关插件,所以自己动手写了一个;可以让Ueditor像easyUI自身的插件一样使用。  
例如:<div class="easyui-ueditor" data-options="width:600,height:400"/>
  取值方法:<button onclick="javascript:alert($('.easyui-ueditor').ueditor('getValue'));">获得内容</button>
             <button onclick="javascript:($('.easyui-ueditor').ueditor('setValue','你好'));">设置内容</button>
  目前只实现了我用到的几个方法以及设置,架子已经弄好,配置相可以完全使用UEditor的配置项,方法调用还需要网友自己完善。


源码地址:https://github.com/jeasonyoung/easyui-ueditor

你可能感兴趣的:(easyui-ueditor)