|
|
@ -82,13 +82,19 @@ function nh_init_board(params){
|
|
|
|
var editor = params.kindutil.create(params.textarea, {
|
|
|
|
var editor = params.kindutil.create(params.textarea, {
|
|
|
|
// allowPreviewEmoticons : false,
|
|
|
|
// allowPreviewEmoticons : false,
|
|
|
|
// allowImageUpload : false,
|
|
|
|
// allowImageUpload : false,
|
|
|
|
|
|
|
|
autoHeightMode : true,
|
|
|
|
resizeType : 1,minWidth:"1px",width:"560px",height:"150px",
|
|
|
|
resizeType : 1,minWidth:"1px",width:"560px",height:"150px",
|
|
|
|
allowFileManager:true,uploadJson:"/kindeditor/upload",
|
|
|
|
allowFileManager:true,uploadJson:"/kindeditor/upload",
|
|
|
|
fileManagerJson:"/kindeditor/filemanager",
|
|
|
|
fileManagerJson:"/kindeditor/filemanager",
|
|
|
|
afterChange:function(){//按键事件
|
|
|
|
afterChange:function(){//按键事件
|
|
|
|
nh_check_field({content:this,contentmsg:params.contentmsg,textarea:params.textarea});
|
|
|
|
nh_check_field({content:this,contentmsg:params.contentmsg,textarea:params.textarea});
|
|
|
|
|
|
|
|
// var edit = this.edit;
|
|
|
|
|
|
|
|
// var body = edit.doc.body;
|
|
|
|
|
|
|
|
// edit.iframe.height(minHeight);
|
|
|
|
|
|
|
|
// this.resize(null, Math.max((params.kindutil.IE ? body.scrollHeight : body.offsetHeight) + 30, minHeight));
|
|
|
|
},
|
|
|
|
},
|
|
|
|
afterCreate:function(){
|
|
|
|
afterCreate:function(){
|
|
|
|
|
|
|
|
this.loadPlugin("autoheight");
|
|
|
|
var userAgent = navigator.userAgent.toLowerCase();
|
|
|
|
var userAgent = navigator.userAgent.toLowerCase();
|
|
|
|
if(/trident/.test(userAgent)){
|
|
|
|
if(/trident/.test(userAgent)){
|
|
|
|
$("div.talk_new .ke-container").css({'margin-left':'0px'});
|
|
|
|
$("div.talk_new .ke-container").css({'margin-left':'0px'});
|
|
|
|