Changeset 1504 for FCKeditor/trunk/editor/dialog/fck_button.html
- Timestamp:
- 2008-02-11 19:14:35 (8 months ago)
- Files:
-
- 1 modified
-
FCKeditor/trunk/editor/dialog/fck_button.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/dialog/fck_button.html
r1398 r1504 48 48 GetE('txtValue').value = oActiveEl.value ; 49 49 GetE('txtType').value = oActiveEl.type ; 50 51 GetE('txtType').disabled = true ;52 50 } 53 51 else … … 63 61 oEditor.FCKUndo.SaveUndoStep() ; 64 62 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 } ) ; 71 64 72 oActiveEl.name = GetE('txtName').value ;73 65 SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ; 74 66