--- a/includes/clientside/static/dynano.js Mon Nov 15 16:58:05 2010 -0500
+++ b/includes/clientside/static/dynano.js Mon Nov 15 19:21:40 2010 -0500
@@ -119,7 +119,6 @@
enano_tinymce_options.elements = this.object.id;
initTinyMCE();
this.object.dnIsMCE = 'yes';
- return true;
}
else
{
@@ -127,6 +126,13 @@
tinymce.EditorManager.execCommand("mceAddControl", true, this.object.id);
this.object.dnIsMCE = 'yes';
}
+ // Any elements to hide?
+ var objs = getElementsByClassName(this.object.parentNode, '*', 'hide-with-mce');
+ console.debug(objs);
+ for ( var i = 0; i < objs.length; i++ )
+ {
+ objs[i].style.display = 'none';
+ }
return this;
}
@@ -151,6 +157,12 @@
}
}
this.object.dnIsMCE = 'no';
+ // Any elements to re-show?
+ var objs = getElementsByClassName(this.object.parentNode, '*', 'hide-with-mce');
+ for ( var i = 0; i < objs.length; i++ )
+ {
+ objs[i].style.display = 'block';
+ }
return this;
}