Changeset 2477 for trunk/framework/Web/UI
- Timestamp:
- 07/17/2008 03:45:08 AM (6 months ago)
- Files:
-
- 1 modified
-
trunk/framework/Web/UI/WebControls/THtmlArea.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/framework/Web/UI/WebControls/THtmlArea.php
r1929 r2477 302 302 if($this->getEnableCompression()) 303 303 $this->preLoadCompressedScript(); 304 $this->applyJavascriptFixes();305 304 306 305 parent::addAttributesToRender($writer); … … 350 349 351 350 /** 352 * Changes the TinyMCE triggerSave() function to allow for missing textareas.353 */354 protected function applyJavascriptFixes()355 {356 $scripts = $this->getPage()->getClientScript();357 $js = <<<EOD358 if(typeof(tinyMCE)!='undefined')359 {360 TinyMCE_Control.prototype.triggerSave_old = TinyMCE_Control.prototype.triggerSave;361 TinyMCE_Control.prototype.triggerSave = function(skip_cleanup, skip_callback)362 {363 if(this.getDoc()!=null)364 this.triggerSave_old(skip_cleanup, skip_callback);365 }366 }367 EOD;368 if(!$scripts->isEndScriptRegistered('prado:THtmlArea:fix'))369 $scripts->registerEndScript('prado:THtmlArea:fix', $js);370 }371 372 /**373 351 * Registers the editor javascript file and code to initialize the editor. 374 352 */ … … 435 413 $options['theme_advanced_buttons1'] = 'formatselect,fontselect,fontsizeselect,separator,bold,italic,underline,strikethrough,sub,sup'; 436 414 $options['theme_advanced_buttons2'] = 'justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,outdent,indent,separator,forecolor,backcolor,separator,hr,link,unlink,image,charmap,separator,removeformat,code,help'; 437 $options['theme_advanced_buttons3'] = ' ';415 $options['theme_advanced_buttons3'] = ''; 438 416 439 417 $options['theme_advanced_toolbar_location'] = 'top';
