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_textarea.html

    r1398 r1504  
    6060{ 
    6161        oEditor.FCKUndo.SaveUndoStep() ; 
    62          
    63         if ( !oActiveEl ) 
    64         { 
    65                 oActiveEl = oEditor.FCK.InsertElement( 'textarea' ) ; 
    66         } 
    6762 
    68         oActiveEl.name = GetE('txtName').value ; 
     63        oActiveEl = CreateNamedElement( oEditor, oActiveEl, 'TEXTAREA', {name: GetE('txtName').value} ) ; 
     64 
    6965        SetAttribute( oActiveEl, 'cols', GetE('txtCols').value ) ; 
    7066        SetAttribute( oActiveEl, 'rows', GetE('txtRows').value ) ;