日期:2014-05-16  浏览次数:20316 次

extjs fckeditor form submit 获取值解决办法
Ext.onReady(function(){   
var fckeditorFormPanel = new Ext.FormPanel({   
        labelWidth: 75,    
        url:'',   
        frame:true,   
        title: 'fckeditor Form',   
        bodyStyle:'padding:5px 5px 0',   
        width: 950,   
        height:450,   
        defaultType: 'textfield',   
  
        items: [{   
                    xtype:'textarea',   
                    fieldLabel:'编辑',   
                    labelSeparator:':',   
                    id:'code',   
                    name:'code',   
                    height:200,   
                    width:300  
                }   
        ],   
        buttons: [{   
            text: 'Save'  
        },{   
            text: 'Cancel'  
        }]   
    });     
    fckeditorFormPanel.render(document.body);   
    /**  
         * 以下创建在线编辑器  
         */  
    var oFCKeditor = new FCKeditor( 'code',810,350 ) ;    
    oFCKeditor.BasePath = "/fckeditor/" ;    
    oFCKeditor.ToolbarSet = 'Default';   
    oFCKeditor.ReplaceTextarea() ;       
}); 
// 对获不到值,使用下面的代码可以获到值


Ext.onReady(function(){   
var fckeditorFormPanel = new Ext.FormPanel({   
        labelWidth: 75,    
        url:'',   
        frame:true,   
        title: 'fckeditor Form',   
        bodyStyle:'padding:5px 5px 0',   
        width: 950,   
&n