r1706 - branches/bxe_2_0/js

[email protected] Sun, 12 Aug 2007 16:00:51 +0200 (CEST)
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Sun Aug 12 16:00:51 2007
New Revision: 1706

Log:
put correct focus in BXEB-28
Neue Elemente und Ersetzen


Modified:
   branches/bxe_2_0/js/bxeFunctions.js

Modified: branches/bxe_2_0/js/bxeFunctions.js
==============================================================================
--- branches/bxe_2_0/js/bxeFunctions.js	(original)
+++ branches/bxe_2_0/js/bxeFunctions.js	Sun Aug 12 16:00:51 2007
@@ -2099,7 +2099,7 @@
 				*/
 				var lala = sel.anchorNode.parentNode.XMLNode._node;
 				//lala.split(_position);
-				
+				var fC = docfrag.firstChild;
 			    lala.parentNode.insertBefore(docfrag,lala.nextSibling);
 				var par = lala.parentNode;
 				var sel = window.getSelection();
@@ -2108,9 +2108,13 @@
 					bxe_deleteEventKey(sel, false,false,false);
 				}
 				
-				
 				par.XMLNode.isNodeValid(true,2,true);
-				
+				if (fC) {
+					if (fC.firstChild) {
+						sel.collapse(fC.firstChild,0);
+					}
+				}
+					
 	
 				bxe_Transform();
 				return ;
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs