r1646 - in branches/bxe_2_0: css js

[email protected] Sun, 3 Dec 2006 11:09:16 +0100 (CET)
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Sun Dec  3 11:09:13 2006
New Revision: 1646

Modified:
   branches/bxe_2_0/css/editor.css
   branches/bxe_2_0/js/bxeFunctions.js
Log:
finally fix #371
make noteditable attributes really not editable :)


Modified: branches/bxe_2_0/css/editor.css
==============================================================================
--- branches/bxe_2_0/css/editor.css	(original)
+++ branches/bxe_2_0/css/editor.css	Sun Dec  3 11:09:13 2006
@@ -368,3 +368,8 @@
   color: #FFF; 
 }
 
+[__bxe_noteditable=true] {
+    -moz-user-modify: read-only;
+    -moz-user-input: disabled;
+    -moz-user-select: none;
+}

Modified: branches/bxe_2_0/js/bxeFunctions.js
==============================================================================
--- branches/bxe_2_0/js/bxeFunctions.js	(original)
+++ branches/bxe_2_0/js/bxeFunctions.js	Sun Dec  3 11:09:13 2006
@@ -2390,6 +2390,7 @@
 				
 				if (notEditable) {
 					node.removeAttribute("__bxe_id");
+					node.setAttribute("__bxe_noteditable","true");
 					node.XMLNode = null;
 				} else {
 					node.XMLNode._htmlnode = node;
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs