r1596 - branches/bxe_2_0/mozile

[email protected] Tue, 31 Oct 2006 17:19:25 +0100 (CET)
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Tue Oct 31 17:19:24 2006
New Revision: 1596

Modified:
   branches/bxe_2_0/mozile/mozilekb.js
Log:
fix defaultcontent problem

Modified: branches/bxe_2_0/mozile/mozilekb.js
==============================================================================
--- branches/bxe_2_0/mozile/mozilekb.js	(original)
+++ branches/bxe_2_0/mozile/mozilekb.js	Tue Oct 31 17:19:24 2006
@@ -542,6 +542,7 @@
 			cssr = sel.getRangeAt(0);
 			var _node = sel.anchorNode.parentNode;
 			if (_node.getAttribute("__bxe_defaultcontent") == "true") {
+				_node.removeAttribute("__bxe_defaultcontent");
 				_node.firstChild.nodeValue = " ";
 				_node.XMLNode._node.firstChild.nodeValue = " ";
 				sel = window.getSelection();
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs