var win = new Ext.Window({ title : "管理学校简介", layout : 'fit', // render:'all', width : 1300, height : 600, // autoHeitht:true, // autoWidth:true, closeAction : 'hide', modal : true, buttonAlign:'center', buttons : [{ text : "确定添加", type : 'submit', handler : function() { //关键 不能删除的 Ext.get('code').dom.value = editorInstance .GetXHTML(true);//获取fckeditor内容赋给textarea var str = Ext.getCmp("code"); alert(str.getValue()); // if(fckeditorFormPanel.form.isValid()){//验证通过 // fckeditorFormPanel.form.doAction('submit',{ // url:'json.aspx', // method:'post', // waitMsg:'正在提交,请稍等...', // success:function(form,action){//成功返回 // var result = action.result.success; // if(result == 'true' ){ // window.location.href="Test.aspx"; // }else{ // Ext.Msg.alert("提示消息","添加错误"); // } // }, // failure:function(form,action){//失败返回 // Ext.Msg.alert("提示消息","添加数据发生了异常"); // } // }); // } } }], items:fckeditorFormPanel });