/** * 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 . 'Vendor/jquery-1.5.2.min.js', false); ClientScript::AddSource($relativePath . 'Vendor/Highcharts/js/highcharts.js', false); ClientScript::AddSource($relativePath . 'Vendor/Highcharts/js/modules/exporting.js', false); $args = ClientScript::ClientFormat($this->Config); ClientScript::RaceQueue($this, 'Highcharts', 'new Highcharts.Chart', array($this->Config)); }
/** * 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();"); }