includes/clientside/static/dynano.js
changeset 493 d8296f89ebb5
parent 474 3d751a6f2b05
child 582 a38876c0793c
--- 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;