取KindEditor中的textarea的值区不到的解决方案,固定kindEditor的高度
可以通過(guò)下面的方式取到textarea的值
var content = $(document.getElementsByTagName('iframe')[0].contentWindow.document.body).html();
另外,控制KindEditor的高度的方式如下:
KindEditor.ready(function(K) {
?????? var editor1 = K.create('#content1', {
??????????????????????????????????????????cssPath: 'kindeditor/plugins/code/prettify.css',
????????????????????????????????????????? allowFileManager: true,
??????????????????????????????????????????resizeType:1 });
});?
resizeType 2或1或0,2時(shí)可以拖動(dòng)改變寬度和高度,1時(shí)只能改變高度,0時(shí)不能拖動(dòng)。? 數(shù)據(jù)類(lèi)型: Int? 默認(rèn)值: 2
總結(jié)
以上是生活随笔為你收集整理的取KindEditor中的textarea的值区不到的解决方案,固定kindEditor的高度的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: FreeMarker生成word的代码
- 下一篇: 锦江区锦馨家园附近有哪些好吃的?