Index: /FCKeditor/trunk/editor/dialog/fck_button.html
===================================================================
--- /FCKeditor/trunk/editor/dialog/fck_button.html	(revision 777)
+++ /FCKeditor/trunk/editor/dialog/fck_button.html	(revision 778)
@@ -58,9 +58,10 @@
 function Ok()
 {
+	oEditor.FCKUndo.SaveUndoStep() ;
+	
 	if ( !oActiveEl )
 	{
 		oActiveEl = oEditor.FCK.EditorDocument.createElement( 'INPUT' ) ;
 		oActiveEl.type = GetE('txtType').value ;
-		oEditor.FCKUndo.SaveUndoStep() ;
 		oActiveEl = oEditor.FCK.InsertElement( oActiveEl ) ;
 	}
Index: /FCKeditor/trunk/editor/dialog/fck_checkbox.html
===================================================================
--- /FCKeditor/trunk/editor/dialog/fck_checkbox.html	(revision 777)
+++ /FCKeditor/trunk/editor/dialog/fck_checkbox.html	(revision 778)
@@ -56,9 +56,10 @@
 function Ok()
 {
+	oEditor.FCKUndo.SaveUndoStep() ;
+	
 	if ( !oActiveEl )
 	{
 		oActiveEl = oEditor.FCK.EditorDocument.createElement( 'INPUT' ) ;
 		oActiveEl.type = 'checkbox' ;
-		oEditor.FCKUndo.SaveUndoStep() ;
 		oActiveEl = oEditor.FCK.InsertElement( oActiveEl ) ;
 	}
Index: /FCKeditor/trunk/editor/dialog/fck_hiddenfield.html
===================================================================
--- /FCKeditor/trunk/editor/dialog/fck_hiddenfield.html	(revision 777)
+++ /FCKeditor/trunk/editor/dialog/fck_hiddenfield.html	(revision 778)
@@ -65,4 +65,6 @@
 function Ok()
 {
+	oEditor.FCKUndo.SaveUndoStep() ;
+	
 	if ( !oActiveEl )
 	{
@@ -80,5 +82,4 @@
 		oFakeImage	= oEditor.FCKDocumentProcessor_CreateFakeImage( 'FCK__InputHidden', oActiveEl ) ;
 		oFakeImage.setAttribute( '_fckinputhidden', 'true', 0 ) ;
-		oEditor.FCKUndo.SaveUndoStep() ;
 		oFakeImage	= FCK.InsertElement( oFakeImage ) ;
 	}
Index: /FCKeditor/trunk/editor/dialog/fck_radiobutton.html
===================================================================
--- /FCKeditor/trunk/editor/dialog/fck_radiobutton.html	(revision 777)
+++ /FCKeditor/trunk/editor/dialog/fck_radiobutton.html	(revision 778)
@@ -56,9 +56,10 @@
 function Ok()
 {
+	oEditor.FCKUndo.SaveUndoStep() ;
+	
 	if ( !oActiveEl )
 	{
 		oActiveEl = oEditor.FCK.EditorDocument.createElement( 'INPUT' ) ;
 		oActiveEl.type = 'radio' ;
-		oEditor.FCKUndo.SaveUndoStep() ;
 		oActiveEl = oEditor.FCK.InsertElement( oActiveEl ) ;
 	}
Index: /FCKeditor/trunk/editor/dialog/fck_select.html
===================================================================
--- /FCKeditor/trunk/editor/dialog/fck_select.html	(revision 777)
+++ /FCKeditor/trunk/editor/dialog/fck_select.html	(revision 778)
@@ -74,4 +74,6 @@
 function Ok()
 {
+	oEditor.FCKUndo.SaveUndoStep() ;
+	
 	var sSize = GetE('txtLines').value ;
 	if ( sSize == null || isNaN( sSize ) || sSize <= 1 )
@@ -80,5 +82,4 @@
 	if ( !oActiveEl )
 	{
-		oEditor.FCKUndo.SaveUndoStep() ;
 		oActiveEl = oEditor.FCK.InsertElement( 'select' ) ;
 	}
Index: /FCKeditor/trunk/editor/dialog/fck_textarea.html
===================================================================
--- /FCKeditor/trunk/editor/dialog/fck_textarea.html	(revision 777)
+++ /FCKeditor/trunk/editor/dialog/fck_textarea.html	(revision 778)
@@ -56,7 +56,8 @@
 function Ok()
 {
+	oEditor.FCKUndo.SaveUndoStep() ;
+	
 	if ( !oActiveEl )
 	{
-		oEditor.FCKUndo.SaveUndoStep() ;
 		oActiveEl = oEditor.FCK.InsertElement( 'textarea' ) ;
 	}
