diff options
| author | tof <> | 2008-07-17 08:45:08 +0000 | 
|---|---|---|
| committer | tof <> | 2008-07-17 08:45:08 +0000 | 
| commit | e3cddec252962c208829dd62157fa5f289942b5e (patch) | |
| tree | e4687785383c761397c5d5847b89f81709c35310 /framework/Web/UI/WebControls | |
| parent | 7a4e1f7a81e700a2035612c5549f534663926f4a (diff) | |
Fixed #844 - Upgraded to TinyMCE 3.1.0.1
Diffstat (limited to 'framework/Web/UI/WebControls')
| -rw-r--r-- | framework/Web/UI/WebControls/THtmlArea.php | 24 | 
1 files changed, 1 insertions, 23 deletions
| diff --git a/framework/Web/UI/WebControls/THtmlArea.php b/framework/Web/UI/WebControls/THtmlArea.php index 8145c9d3..109d000a 100644 --- a/framework/Web/UI/WebControls/THtmlArea.php +++ b/framework/Web/UI/WebControls/THtmlArea.php @@ -301,7 +301,6 @@ class THtmlArea extends TTextBox  		$this->loadJavascriptLibrary();
  		if($this->getEnableCompression())
  			$this->preLoadCompressedScript();
 -		$this->applyJavascriptFixes();
  		parent::addAttributesToRender($writer);
  	}
 @@ -349,27 +348,6 @@ class THtmlArea extends TTextBox  	}
  	/**
 -	 * Changes the TinyMCE triggerSave() function to allow for missing textareas.
 -	 */
 -	protected function applyJavascriptFixes()
 -	{
 -		$scripts = $this->getPage()->getClientScript();
 -		$js = <<<EOD
 -if(typeof(tinyMCE)!='undefined')
 -{
 -	TinyMCE_Control.prototype.triggerSave_old = TinyMCE_Control.prototype.triggerSave;
 -	TinyMCE_Control.prototype.triggerSave = function(skip_cleanup, skip_callback)
 -	{
 -		if(this.getDoc()!=null)
 -			this.triggerSave_old(skip_cleanup, skip_callback);
 -	}
 -}
 -EOD;
 -		if(!$scripts->isEndScriptRegistered('prado:THtmlArea:fix'))
 -			$scripts->registerEndScript('prado:THtmlArea:fix', $js);
 -	}
 -
 -	/**
  	 * Registers the editor javascript file and code to initialize the editor.
  	 */
  	protected function registerEditorClientScript($writer)
 @@ -434,7 +412,7 @@ EOD;  		//$options['theme_advanced_buttons2'] = ' ';
  		$options['theme_advanced_buttons1'] = 'formatselect,fontselect,fontsizeselect,separator,bold,italic,underline,strikethrough,sub,sup';
  		$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';
 -		$options['theme_advanced_buttons3'] = ' ';
 +		$options['theme_advanced_buttons3'] = '';
  		$options['theme_advanced_toolbar_location'] = 'top';
  		$options['theme_advanced_toolbar_align'] = 'left';
 | 
