From 42c84379ccf7bc54de89f9d88235d061ef75cad7 Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 10 May 2007 23:37:57 +0000 Subject: Fixed #578 --- framework/Web/UI/WebControls/THtmlArea.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'framework/Web/UI/WebControls/THtmlArea.php') diff --git a/framework/Web/UI/WebControls/THtmlArea.php b/framework/Web/UI/WebControls/THtmlArea.php index 19971eed..8145c9d3 100644 --- a/framework/Web/UI/WebControls/THtmlArea.php +++ b/framework/Web/UI/WebControls/THtmlArea.php @@ -284,14 +284,6 @@ class THtmlArea extends TTextBox $this->setViewState('EnableCompression', TPropertyValue::ensureBoolean($value)); } - public function onPreRender($param) - { - $this->loadJavascriptLibrary(); - if($this->getEnableCompression()) - $this->preLoadCompressedScript(); - $this->applyJavascriptFixes(); - } - /** * Adds attribute name-value pairs to renderer. * This method overrides the parent implementation by registering @@ -305,6 +297,12 @@ class THtmlArea extends TTextBox $writer->addAttribute('id',$this->getClientID()); $this->registerEditorClientScript($writer); } + + $this->loadJavascriptLibrary(); + if($this->getEnableCompression()) + $this->preLoadCompressedScript(); + $this->applyJavascriptFixes(); + parent::addAttributesToRender($writer); } -- cgit v1.2.3