Show
Ignore:
Timestamp:
2008-02-11 19:14:35 (8 months ago)
Author:
alfonsoml
Message:

Fix #676 and #738, form elements in IE are quite special when you create them.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/dialog/fck_select.html

    r1398 r1504  
    8383                sSize = '' ; 
    8484 
    85         if ( !oActiveEl ) 
    86         { 
    87                 oActiveEl = oEditor.FCK.InsertElement( 'select' ) ; 
    88         } 
     85        oActiveEl = CreateNamedElement( oEditor, oActiveEl, 'SELECT', {name: GetE('txtName').value} ) ; 
    8986 
    90         SetAttribute( oActiveEl, 'name' , GetE('txtName').value ) ; 
    9187        SetAttribute( oActiveEl, 'size' , sSize ) ; 
    9288        oActiveEl.multiple = ( sSize.length > 0 && GetE('chkMultiple').checked ) ;