KindEditor编辑器, 利用ajax动态切换编辑器内容
2015-03-26 12:03
176 查看
// 后台成功返回数据后的js处理
KindEditor.remove('#content_id'); // 先移除之前创建的编辑器
var editor = KindEditor.create('#content_id', { // 再重新创建编辑器
themeType: 'simple',
resizeType: 1,
urlType: 'domain', // 将图片保存为绝对路径
uploadJson: '../kindeditor/php/upload_json.php',
fileManagerJson: '../kindeditor/php/file_manager_json.php',
allowFileManager: true,
afterBlur: function(){this.sync();}
});
editor.html(data); // 再把从后台传过来的值重新赋给编辑器
KindEditor.remove('#content_id'); // 先移除之前创建的编辑器
var editor = KindEditor.create('#content_id', { // 再重新创建编辑器
themeType: 'simple',
resizeType: 1,
urlType: 'domain', // 将图片保存为绝对路径
uploadJson: '../kindeditor/php/upload_json.php',
fileManagerJson: '../kindeditor/php/file_manager_json.php',
allowFileManager: true,
afterBlur: function(){this.sync();}
});
editor.html(data); // 再把从后台传过来的值重新赋给编辑器
相关文章推荐
- 动态事创建的a标签上利用jq滑过元素执行事件通过ajax获取后台数据根据鼠标位置展示数据内容,鼠标离开消失
- ajax获取kindeditor编辑器内容中的图片
- Ajax提交表单时kindeditor编辑器中的内容如何赋值给textarea
- 我的玩具: 利用xmlhttp无刷新动态加载内容的DropDownList控件
- 利用Dojo和JSON建立无限级AJAX动态加载的功能模块树
- Ajax实现在textbox中输入内容,动态从数据库中模糊查询显示到下拉框中
- 所见即所得编辑器 aynHTML 大全——(一)如何部署、嵌入、装载动态内容
- 利用动态加载模板,配合ajax实现无刷新操作
- 利用动态加载模板,配合ajax实现无刷新操作
- [导入]Ajax实现在textbox中输入内容,动态从数据库中模糊查询显示到下拉框中
- 利用Ajax无全页面提交实现动态画图
- Ajax实现在textbox中输入内容,动态从数据库中模糊查询显示到下拉框中
- 利用Asp.net Ajax异步获取xml文档内容
- Ajax实现在textbox中输入内容,动态从数据库中模糊查询显示到下拉框中
- 利用netsh命令,实现动态IP和静态IP之间的切换。
- 利用Dojo和JSON建立无限级AJAX动态加载的功能模块树
- Ajax实现在textbox中输入内容,动态从数据库中模糊查询显示到下拉框中
- 利用AjAX动态变换过滤条件
- Ajax实现在textbox中输入内容,动态从数据库中模糊查询显示到下拉框中
- 利用Asp.net Ajax异步获取xml文档内容