ExtJs button中央
2646 ワード
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
});