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

    r1398 r1504  
    4848                GetE('txtValue').value  = oActiveEl.value ; 
    4949                GetE('txtType').value   = oActiveEl.type ; 
    50  
    51                 GetE('txtType').disabled = true ; 
    5250        } 
    5351        else 
     
    6361        oEditor.FCKUndo.SaveUndoStep() ; 
    6462         
    65         if ( !oActiveEl ) 
    66         { 
    67                 oActiveEl = oEditor.FCK.EditorDocument.createElement( 'INPUT' ) ; 
    68                 oActiveEl.type = GetE('txtType').value ; 
    69                 oActiveEl = oEditor.FCK.InsertElement( oActiveEl ) ; 
    70         } 
     63        oActiveEl = CreateNamedElement( oEditor, oActiveEl, 'INPUT', {name: GetE('txtName').value, type: GetE('txtType').value } ) ; 
    7164 
    72         oActiveEl.name = GetE('txtName').value ; 
    7365        SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ; 
    7466