summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/UI/WebControls/THtmlArea.php14
1 files changed, 6 insertions, 8 deletions
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);
}