/** * Do not call manually! Override of default Show(). Triggers when tinyMCE instance is initially shown. */ function Show() { parent::Show(); $relativePath = System::GetRelativePath(getcwd(), dirname(__FILE__)); //Add tinymce script files ClientScript::AddSource($relativePath . 'tinymce/jscripts/tiny_mce/tiny_mce.js', false); /*Add NOLOH bridge script file*/ //Debug Version // ClientScript::AddSource($relativePath . 'Bridge/bridge.js', false); //Minified Version ClientScript::AddSource($relativePath . 'Bridge/bridge-min.js', false); $args = ClientScript::ClientFormat($this->Config); ClientScript::RaceQueue($this, 'tinymce', "var e=new tinymce.Editor('$this', $args);e.render();"); }