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

    r1398 r1504  
    6161        oEditor.FCKUndo.SaveUndoStep() ; 
    6262         
    63         if ( !oActiveEl ) 
    64         { 
    65                 oActiveEl = oEditor.FCK.EditorDocument.createElement( 'INPUT' ) ; 
    66                 oActiveEl.type = 'radio' ; 
    67                 oActiveEl = oEditor.FCK.InsertElement( oActiveEl ) ; 
    68         } 
    69  
    70         if ( GetE('txtName').value.length > 0 ) 
    71                 oActiveEl.name = GetE('txtName').value ; 
     63        oActiveEl = CreateNamedElement( oEditor, oActiveEl, 'INPUT', {name: GetE('txtName').value, type: 'radio' } ) ; 
    7264 
    7365        if ( oEditor.FCKBrowserInfo.IsIE )