r1479 - branches/bxe_2_0/mozile

[email protected]
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Wed May 17 16:22:44 2006
New Revision: 1479

Modified:
   branches/bxe_2_0/mozile/mozilekb.js
Log:
fix 'no new element, if last char is a space on enter' issue

Modified: branches/bxe_2_0/mozile/mozilekb.js
==============================================================================
--- branches/bxe_2_0/mozile/mozilekb.js	(original)
+++ branches/bxe_2_0/mozile/mozilekb.js	Wed May 17 16:22:44 2006
@@ -427,7 +427,7 @@
 				//var ip2 = documentCreateInsertionPoint(lala._node, textNode, cssr.startOffset);
 				//ip2.splitXHTMLLine();
 				//we're at the end of the line
-				if (textNode.data.replace(/[\s\n\t\r]*$/,"").length == cssr.startOffset) {
+				if (textNode.data.replace(/[\s\n\t\r]*$/,"").length <= cssr.startOffset) {
 					if (lala.vdom.bxeNextelement) {
 						eDOMEventCall("appendNode",document,{"appendToNode": lala, "localName":lala.vdom.bxeNextelement, "namespaceURI":null});// ,"namespaceURI":widget.InsertNamespaceURI})
 					} else {
-- 
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.