Changeset 1504 for FCKeditor/trunk/editor/dialog/fck_textfield.html
- Timestamp:
- 2008-02-11 19:14:35 (8 months ago)
- Files:
-
- 1 modified
-
FCKeditor/trunk/editor/dialog/fck_textfield.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/dialog/fck_textfield.html
r1398 r1504 50 50 GetE('txtMax').value = GetAttribute( oActiveEl, 'maxLength' ) ; 51 51 GetE('txtType').value = oActiveEl.type ; 52 53 GetE('txtType').disabled = true ;54 52 } 55 53 else … … 76 74 } 77 75 78 if ( !oActiveEl ) 79 { 80 oActiveEl = oEditor.FCK.EditorDocument.createElement( 'INPUT' ) ; 81 oActiveEl.type = GetE('txtType').value ; 82 oEditor.FCKUndo.SaveUndoStep() ; 83 oActiveEl = oEditor.FCK.InsertElement( oActiveEl ) ; 84 } 76 oEditor.FCKUndo.SaveUndoStep() ; 85 77 86 oActiveEl.name = GetE('txtName').value ; 78 oActiveEl = CreateNamedElement( oEditor, oActiveEl, 'INPUT', {name: GetE('txtName').value, type: GetE('txtType').value } ) ; 79 87 80 SetAttribute( oActiveEl, 'value' , GetE('txtValue').value ) ; 88 81 SetAttribute( oActiveEl, 'size' , GetE('txtSize').value ) ;