From 76fa2962008b8c16c2d36289f04e176892b502a0 Mon Sep 17 00:00:00 2001 From: "Christophe.Boulain" <> Date: Mon, 23 Feb 2009 11:59:37 +0000 Subject: Fixed Issue#87 --- framework/Web/UI/WebControls/THtmlArea.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'framework/Web/UI') diff --git a/framework/Web/UI/WebControls/THtmlArea.php b/framework/Web/UI/WebControls/THtmlArea.php index 7fea5862..5d65c8b2 100644 --- a/framework/Web/UI/WebControls/THtmlArea.php +++ b/framework/Web/UI/WebControls/THtmlArea.php @@ -4,7 +4,7 @@ * * @author Wei Zhuo * @link http://www.pradosoft.com/ - * @copyright Copyright © 2005-2008 PradoSoft + * @copyright Copyright © 2005-2008 PradoSoft * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Web.UI @@ -334,7 +334,7 @@ class THtmlArea extends TTextBox $options['languages'] = $this->getLanguageSuffix($this->getCulture()); $options['disk_cache'] = true; $options['debug'] = false; - $js = TJavaScript::encode($options); + $js = TJavaScript::encode($options,true,true); $script = "if(typeof(tinyMCE_GZ)!='undefined'){ tinyMCE_GZ.init({$js}); }"; $scripts->registerBeginScript($key, $script); } @@ -353,7 +353,7 @@ class THtmlArea extends TTextBox protected function registerEditorClientScript($writer) { $scripts = $this->getPage()->getClientScript(); - $options = TJavaScript::encode($this->getEditorOptions()); + $options = TJavaScript::encode($this->getEditorOptions(),true,true); // Force encoding of empty strings $script = "if(typeof(tinyMCE)!='undefined'){ tinyMCE.init($options); }"; $scripts->registerEndScript('prado:THtmlArea'.$this->ClientID,$script); } -- cgit v1.2.3