# HG changeset patch # User Dan # Date 1204871248 18000 # Node ID d8296f89ebb5ed18f764718f41e1625f94845552 # Parent e07ad77fe9d0cf662fa6414b9f57d2a33912db82 Fixed the TinyMCE save bug. diff -r e07ad77fe9d0 -r d8296f89ebb5 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;