protected function registerEditorClientScript($writer)
{
$this->loadJavascriptLibrary();
$scripts = $this->getPage()->getClientScript();
$options = array('EditorOptions' => $this->getEditorOptions());
$options = TJavaScript::encode($options, true, true);
$script = "new {$this->getClientClassName()}({$options})";
$scripts->registerEndScript('prado:THtmlArea4' . $this->ClientID, $script);
}