r1319 - trunk/mozile

[email protected]
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Wed Jun  1 17:44:35 2005
New Revision: 1319

Modified:
   trunk/mozile/mozCE.js
Log:
fix http://cvs.wyona.org/cgi-bin/bugzilla/show_bug.cgi?id=3463
copy/paste: "p ist not allowed as child of p"


Modified: trunk/mozile/mozCE.js
==============================================================================
--- trunk/mozile/mozCE.js	(original)
+++ trunk/mozile/mozCE.js	Wed Jun  1 17:44:35 2005
@@ -453,7 +453,12 @@
 	if(!cssr.collapsed)
 	{
 		bxe_deleteEventKey(window.getSelection(), false);
-	}
+	} /*else {
+		if (cssr.startContainer.nodeType == 3 && cssr.startContainer.data == STRING_NBSP) {
+			cssr.startContainer.data = "llll";
+		}
+	}*/
+	
 	if (oldStyleInsertion) {
 		var ip = cssr.firstInsertionPoint;
 		ip.insertNode(node);
@@ -530,7 +535,7 @@
 			window.getSelection().insertNode(content);
 		}
 	} else {
-		window.getSelection().insertNode(content);
+		bxe_insertContent_async(content,BXE_SELECTION,BXE_SPLIT_IF_INLINE);
 	} 
 	
 	var node = window.getSelection().anchorNode;
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.