easyui-ueditor
2015-06-11 11:20
441 查看
摘要: 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的项目开发中遇到了富文本编辑器的兼容问题,之前一直使用 夏悸 贡献的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
相关文章推荐
- [LeetCode] Implement Stack using Queues
- 51nod 1126 求递推序列的第N项 && hdu - 1005 Number Sequence (求周期)
- UI元素状态伪类选择器
- 3 way quick sort
- POJ 1458:Common Subsequence
- POJ 1458:Common Subsequence
- 非常不错的点餐系统应用源码完整版
- leetcode--Unique Binary Search Trees II
- A quick message queue benchmark: ActiveMQ, RabbitMQ, HornetQ, QPID, Apollo
- java 并发编程 AbstractQueuedSynchronizer 加锁和解锁分析
- UITableView的简单介绍和功能
- Null value was assigned to a property of primitive type setter of"原因及解决方
- powerbuilder开发的程序,查询功能中,listview中的属性列重复出现
- 为jenkins的每个build设置description
- Android含文档server结束(client UI接口异步请求的一部分)三
- 【EasyUI学习-2】Easyui Tree的异步加载
- 报错:ImportError: No module named 'requests'
- MUI实战开发第四集--如何增加自定义icon图标
- 关于使用unigui、webxone、mysql的几个问题
- java.sql.SQLException: Can not issue data manipulation statements with executeQuery().