<textarea id="inputtext" name="content" class="inputbox"
style="width: 100%; height: 106px;"></textarea>
这个是文本域
KindEditor.ready(function(K) {
editor = K.create("#inputtext", {
uploadJson : './kindeditor/jsp/upload_json.jsp',
fileManagerJson : './kindeditor/jsp/file_manager_json.jsp',
allowFileManager : true, //默认false
allowImageUpload : true,
autoHeightMode : true, //默认值: false
afterCreate : function() {
this.loadPlugin('autoheight');
var __doc = this.edit.doc;
$(__doc).bind('paste', null, function() { //右键粘贴, 包括 ctrl+v
setTimeout(dealdoc(editor), 100);
});
$(__doc).bind("keydown", function(event) {
if (event.keyCode == 13) {
sendMessageNew();
}
});
},
afterChange : function() {
$('.word_count').html(this.count()); //(字数统计包含HTML代码。)
},
afterBlur : function() {
this.sync();
}
});
$(".ke-toolbar").hide();
$(".ke-edit-iframe").css("height", "106px");
});
这个创建得不太对啊,firebug显示的是上面的textarea文本域原封不动,而创建的是一个iframe嵌入页面,请问是哪里参数可能有错误吗?