r1639 - branches/bxe_2_0/js
[email protected] Thu, 23 Nov 2006 14:39:21 +0100 (CET)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Thu Nov 23 14:39:21 2006
New Revision: 1639
Modified:
branches/bxe_2_0/js/bxeFunctions.js
Log:
not editable for attribtues as content
Modified: branches/bxe_2_0/js/bxeFunctions.js
==============================================================================
--- branches/bxe_2_0/js/bxeFunctions.js (original)
+++ branches/bxe_2_0/js/bxeFunctions.js Thu Nov 23 14:39:21 2006
@@ -2361,16 +2361,25 @@
var id = node.getAttribute("__bxe_id");
var _existingNode = bxe_xml_nodes[id];
if (_existingNode) {
+ var notEditable = false;
if (node.hasAttribute("__bxe_attribute")) {
- node.XMLNode = _existingNode.getAttributeNode(node.getAttribute("__bxe_attribute")).getXMLNode();
+ var attr = node.getAttribute("__bxe_attribute");
+ node.XMLNode = _existingNode.getAttributeNode(attr).getXMLNode();
+ if (_existingNode.getXMLNode().vdom.attributes[attr].bxeNoteditable) {
+ notEditable = true;
+ }
} else {
node.XMLNode = _existingNode.getXMLNode();
+ if (node.XMLNode.vdom && node.XMLNode.vdom.bxeNoteditable) {
+ notEditable = true;
+ }
}
- node.XMLNode._htmlnode = node;
- if (node.XMLNode.vdom && node.XMLNode.vdom.bxeNoteditable) {
+ if (notEditable) {
node.removeAttribute("__bxe_id");
+ node.XMLNode = null;
} else {
+ node.XMLNode._htmlnode = node;
var _child = node.firstChild;
var _z = 0;
while (_child) {
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs