Fixed the TinyMCE save bug.
authorDan
Fri, 07 Mar 2008 01:27:28 -0500
changeset 493 d8296f89ebb5
parent 492 e07ad77fe9d0
child 494 6c78cc456091
Fixed the TinyMCE save bug.
includes/clientside/static/dynano.js
--- a/includes/clientside/static/dynano.js	Fri Mar 07 00:19:29 2008 -0500
+++ b/includes/clientside/static/dynano.js	Fri Mar 07 01:27:28 2008 -0500
@@ -10,6 +10,9 @@
   this.object = ( typeof(id) == 'object' ) ? id : document.getElementById(id);
   if ( !this.object )
   {
+    console.warn('Dynano: requested object is bad. id parameter follows.');
+    console.debug(id);
+    console.debug(tinyMCE.getInstanceById(id));
     this.object = false;
     return this;
   }
@@ -102,8 +105,7 @@
   if ( !tinymce_initted )
   {
     enano_tinymce_options.mode = 'exact';
-    enano_tinymce_options.elements = this.object.name;
-    console.debug(enano_tinymce_options);
+    enano_tinymce_options.elements = this.object.id;
     initTinyMCE();
     this.object.dnIsMCE = 'yes';
     return true;