r1492 - branches/bxe_2_0/js

[email protected] Tue, 30 May 2006 17:57:24 +0200 (CEST)
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Tue May 30 17:57:23 2006
New Revision: 1492

Modified:
   branches/bxe_2_0/js/bxeFunctions.js
Log:
check if parent node exists

Modified: branches/bxe_2_0/js/bxeFunctions.js
==============================================================================
--- branches/bxe_2_0/js/bxeFunctions.js	(original)
+++ branches/bxe_2_0/js/bxeFunctions.js	Tue May 30 17:57:23 2006
@@ -686,7 +686,7 @@
 			_clipboardNamespaceUri = XHTMLNS;
 		}
 		if (!_clipboardNamespaceUri) { _clipboardNamespaceUri = ""};
-		if (node.parentNode.isAllowedChild(_clipboardNamespaceUri, _clipboardNodeName)) {
+		if (node.parentNode && node.parentNode.isAllowedChild(_clipboardNamespaceUri, _clipboardNodeName)) {
 			
 			
 			popup.addMenuItem(bxe_i18n.getText("Append {0} from Clipboard",new Array(_clipboardNodeName)), function (e) {
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs