LigerUI中使用ligerForm创建表单 如: { display:"测试KindEditor",name:"DeptDesc", newline: true, labelWidth: 100, width: 700, space: 30, type:"textarea"} 使用 var options={ uploadJson:"../handler/upload_json.ashx", fileManagerJson:"../handler/file_manager_json.ashx", allowFileManager: true, afterBlur: function(){this.sync(); }, afterCreate: function(){this.sync();} } //$("#DeptKineEdit").val("dddddd"); $.ajax({ url:"/kindeditor/kindeditor-min.js", dataType:"script", cache: true, success: function(){ KindEditor.basePath = '/kindeditor/'; editor= KindEditor.create('textarea[name="DeptDesc"]',options); },error: function(msg){ alert(msg); } }); 来加载KindEditor 获取或者设置值的时候, 用 $("#DeptDesc").val() |
|