r1477 - branches/bxe_2_0/js

[email protected]
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Wed May 17 15:57:51 2006
New Revision: 1477

Modified:
   branches/bxe_2_0/js/bxeFunctions.js
Log:
remove __bxe_invalid on save

Modified: branches/bxe_2_0/js/bxeFunctions.js
==============================================================================
--- branches/bxe_2_0/js/bxeFunctions.js	(original)
+++ branches/bxe_2_0/js/bxeFunctions.js	Wed May 17 15:57:51 2006
@@ -219,6 +219,15 @@
 			
 		}
 		
+		var res = doc.evaluate("//@__bxe_invalid", doc, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
+		var _l = res.snapshotLength;
+		for (var i = 0; i < _l; i++) {
+			if (res.snapshotItem(i).ownerElement) {
+				res.snapshotItem(i).ownerElement.removeAttributeNode(res.snapshotItem(i));
+			}
+			
+		}
+		
 		res = doc.evaluate("//@__bxe_defaultcontent", doc, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
 		_l = res.snapshotLength;
 		for (var i = 0; i < _l; i++) {
@@ -2169,7 +2178,11 @@
 	dump ("New Processor " + (new Date() - startTimer)/1000 + " sec\n"); 
 	processor.importStylesheet(bxe_config.xsldoc);
 	dump ("New importStylesheet " + (new Date() - startTimer)/1000 + " sec\n");*/
+	try {
 	var xmldoc = bxe_config.processor.transformToFragment(xml,document);
+	} catch (e) {
+		BX_debug(e);
+	}
 	dump ("transformToFragment " + (new Date() - startTimer)/1000 + " sec\n");
 	
 	var bxe_area = document.getElementById("bxe_area");
@@ -2476,4 +2489,9 @@
 		appNode.parentNode.insertAfter(appNode._node, nextSibling._node);
 	}
 	bxe_Transform(false,false,appNode.parentNode);
+}
+
+function html_get_current_XMLNode(element) {
+
+return element.getParentWithXMLNode().XMLNode;
 }
\ No newline at end of file
-- 
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.