KindEditor 无法设置内容解决办法
来源:互联网 发布:淘宝的追评在哪里看到 编辑:程序博客网 时间:2024/06/16 21:47
看到很多人编辑器无法设置内容。把解决的问题写在上面。
不能用$("#Editor_XieYiNeiRong").html("helllo"); 或则$("#Editor_XieYiNeiRong").val("helllo"); 等形式。
希望能帮助到你。
editor_Editor_XieYiNeiRong.html(unescape(data[0].协议内容));
变量设置如下
var editor_Editor_XieYiNeiRong;
KindEditor.ready(function(K) {
editor_Editor_XieYiNeiRong = K.create('#Editor_XieYiNeiRong', {
cssPath: '/kindeditor/plugins/code/prettify.css',
uploadJson: urluploadimg, //'/ajax/UploadHandlerPhoto.aspx', // '/ajax/upload_json.ashx',处理图片的程序
fileManagerJson: '/ajax/file_manager_json.ashx',
allowFileManager: false,//true
filterMode: true,
urlType: "",
afterCreate: function() {
var self = this;
K.ctrl(document, 13, function() {
self.sync();
K('form[name=fm_Editor_XieYiNeiRong]')[0].submit();
});
K.ctrl(self.edit.doc, 13, function() {
self.sync();
K('form[name=fm_Editor_XieYiNeiRong]')[0].submit();
});
},
afterLoginOut: function() {
parent.loginagin();
}
});
prettyPrint();
});
不能用$("#Editor_XieYiNeiRong").html("helllo"); 或则$("#Editor_XieYiNeiRong").val("helllo"); 等形式。
希望能帮助到你。
editor_Editor_XieYiNeiRong.html(unescape(data[0].协议内容));
变量设置如下
var editor_Editor_XieYiNeiRong;
KindEditor.ready(function(K) {
editor_Editor_XieYiNeiRong = K.create('#Editor_XieYiNeiRong', {
cssPath: '/kindeditor/plugins/code/prettify.css',
uploadJson: urluploadimg, //'/ajax/UploadHandlerPhoto.aspx', // '/ajax/upload_json.ashx',处理图片的程序
fileManagerJson: '/ajax/file_manager_json.ashx',
allowFileManager: false,//true
filterMode: true,
urlType: "",
afterCreate: function() {
var self = this;
K.ctrl(document, 13, function() {
self.sync();
K('form[name=fm_Editor_XieYiNeiRong]')[0].submit();
});
K.ctrl(self.edit.doc, 13, function() {
self.sync();
K('form[name=fm_Editor_XieYiNeiRong]')[0].submit();
});
},
afterLoginOut: function() {
parent.loginagin();
}
});
prettyPrint();
});
阅读全文
0 0
- KindEditor 无法设置内容解决办法
- asp.net无法获取kindeditor文本编辑器内容的解决办法
- asp.net无法获取kindeditor文本编辑器内容的解决办法
- PHP 无法获取 Kindeditor 内容值 解决方法
- kindeditor获取内容,清空,设置kindeditor输入提示信息
- kindeditor 无法提交内容/提交后获取不到内容
- js提交表单kindeditor编辑器内容无法获取
- jquery无法获取kindeditor编辑器中textarea值的解决办法
- kindeditor获取内容
- 解决OneThink中无法异步提交kindeditor文本框中修改后的内容
- jquery 无法获取 Kindeditor 编辑器中当前 textarea 值的解决办法
- KindEditor 设置成只读
- kindeditor编辑器 php获取内容
- KindEditor编辑器内容分页js
- kindeditor编辑器 php获取内容
- 清空KindEditor编辑器内容
- vc无法设置断点的解决办法
- 无法设置默认浏览器的解决办法
- #数据结构
- Hbase和Mysql文件互相导入
- Pollard p-1 算法
- 数组
- JNI局部引用、全局引用和弱全局引用
- KindEditor 无法设置内容解决办法
- 【答疑】非科班出身的前端如何学好Node.js?
- Linux(CentOS7)安装MySQL-5.7
- 汽车通信协议
- 阿里云https配置,nginx多证书配置
- nohup 执行 python 程序 , 以及 print 无法输出问题
- cmake配置
- js获取userAgent中操作系统版本
- OkHttp的使用