KindEditor 无法设置内容解决办法
2017-10-21 11:54
316 查看
看到很多人编辑器无法设置内容。把解决的问题写在上面。
不能用$("#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
不能用$("#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
相关文章推荐
- asp.net无法获取kindeditor文本编辑器内容的解决办法
- asp.net无法获取kindeditor文本编辑器内容的解决办法
- WordPress自动升级过程中显示 无法定位WordPress内容目录(wp-content)解决办法
- Eclipse无法调整字体设置的解决办法
- XCode5无法设置Deployment Target的解决办法
- 手机设置fiddler代理无法上网问题解决办法
- SnagIt截图后无法在编辑器打开,不显示截图内容的解决办法
- Fiddler设置代理后,iphone手机无法访问网络的全面解决办法
- Eclipse 4.4语法(代码)着色设置无法保存解决办法
- 访问国外技术网站时,长时间无法显示内容的解决办法
- 电驴提示“该内容尚未提供权利证明,无法提供下载”之解决办法详解
- 电驴提示“该内容尚未提供权利证明,无法提供下载”之解决办法详解
- 【转载】解决CHM文件无法显示内容的办法 分类: 杂项 2014-12-06 16:09 61人阅读 评论(0) 收藏
- 关于使用summernote编辑器提示内容无法汉化临时解决办法
- 电驴提示“该内容尚未提供权利证明,无法提供下载”之解决办法详解
- Win下“高级共享设置”中网络发现无法启动的通用解决办法.
- 电驴提示“该内容尚未提供权利证明,无法提供下载”之解决办法
- 电驴提示“该内容尚未提供权利证明,无法提供下载”之解决办法详解
- 关于“错误:找不到或无法加载主类”的错误的解决办法(环境变量确信自己已经设置好了的人可以参考一下这个)
- macos系统用virtualbox安装Linux系统无法设置host-only解决办法