Show
Ignore:
Timestamp:
07/17/2008 03:45:08 AM (6 months ago)
Author:
tof
Message:

Fixed #844 - Upgraded to TinyMCE 3.1.0.1

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/framework/Web/UI/WebControls/THtmlArea.php

    r1929 r2477  
    302302                if($this->getEnableCompression()) 
    303303                        $this->preLoadCompressedScript(); 
    304                 $this->applyJavascriptFixes(); 
    305304 
    306305                parent::addAttributesToRender($writer); 
     
    350349 
    351350        /** 
    352          * Changes the TinyMCE triggerSave() function to allow for missing textareas. 
    353          */ 
    354         protected function applyJavascriptFixes() 
    355         { 
    356                 $scripts = $this->getPage()->getClientScript(); 
    357                 $js = <<<EOD 
    358 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         /** 
    373351         * Registers the editor javascript file and code to initialize the editor. 
    374352         */ 
     
    435413                $options['theme_advanced_buttons1'] = 'formatselect,fontselect,fontsizeselect,separator,bold,italic,underline,strikethrough,sub,sup'; 
    436414                $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'] = ''; 
    438416 
    439417                $options['theme_advanced_toolbar_location'] = 'top';