Prado\Web\UI\WebControls\THtmlArea::registerEditorClientScript PHP Method

registerEditorClientScript() protected method

Registers the editor javascript file and code to initialize the editor.
protected registerEditorClientScript ( $writer )
    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:THtmlArea' . $this->ClientID, $script);
    }