从数据库中提取到ueditor并且重新编辑
2015-08-29 08:25
447 查看
用jquery 的 $(document).ready(function(){});这种方式是不行的。
需要等待编辑器实例化完成之后再赋值
editor.ready(function(){editor.setContent(cont);})其中cont就是需要传入编辑器的html代码或者文本。
相关文章推荐
- POJ 2664 && HDU 1144 Prerequisites?(水~)
- 【LeetCode-面试算法经典-Java实现】【225-Implement Stack using Queues(用队列实现栈操作)】
- 6、iOS 开发之 UIPickerView
- 4、iOS 开发之 UITableView
- 3、iOS 开发之 UIScrollView UIPageController NSTimer
- iOS部分-UI基础控件 - 01天 入门 第11课 上下左右移动
- 新建Android工程报错:'Building workspace' has encountered a problem...解决办法
- ngui自适应的一点学习
- ios开发-UI-自定义Tabbar 图书布局
- iOS之Operation Queues 和 Grand Central Dispatch
- PHP生成UUID
- .NET 的 Debug 和 Release build 对执行速度的影响
- 关于CodeFirst异常:无法确定类型'XXX'和类型‘YYY’之间的关联的主体端,必须使用关系 Fluent API 或数据注释显式配置此关联的主体端。
- 【我们都爱Paul Hegarty】斯坦福IOS8公开课个人笔记44 Popover Segue
- Android UI设计:Notification
- Android UI设计:PopupWindow
- MongoVUE对json数据的导入和导出
- Unable to run Vmware workstation 11 - failed to build vmnet
- [leetcode-187]Repeated DNA Sequences(java)
- easyui-editing datagrid 批量保存数据 二