Example #1
0
 /**
  * Do not call manually! Override of default Show(). Triggers when CKEditor instance is initially shown.
  */
 function Show()
 {
     parent::Show();
     $relativePath = System::GetRelativePath(getcwd(), dirname(__FILE__));
     //Add ckeditor script files
     ClientScript::AddSource($relativePath . 'ckeditor/ckeditor.js', false);
     //Add NOLOH bridge script file
     ClientScript::AddSource($relativePath . 'Bridge/bridge.js', false);
     if (isset($this->Config['toolbar']) && is_string($toolbar = $this->Config['toolbar'])) {
         $condition = 'CKEDITOR.status == "loaded" && (CKEDITOR.config.toolbar_' . $toolbar . '|| CKEDITOR.fire("toolbar"))';
     } else {
         $condition = 'CKEDITOR.status == "loaded"';
     }
     ClientScript::RaceQueue($this->TextHolder, $condition, 'CKEDITOR.replace', array($this->TextHolder->Id, $this->Config), false, Priority::Low);
 }
Example #2
0
	/**
	* 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));	
	}
Example #3
0
 /**
  * Do not call manually! Override of default Show(). Triggers when FullCalendar instance is initially shown.
  */
 function Show()
 {
     parent::Show();
     $relativePath = System::GetRelativePath(getcwd(), dirname(__FILE__));
     //Add FullCalendar CSS
     WebPage::That()->CSSFiles->Add($relativePath . '/Vendor/' . self::$CalendarPath . '/fullcalendar/fullcalendar.css');
     //Add FullCalendar script files
     ClientScript::AddSource($relativePath . 'Vendor/' . self::$CalendarPath . '/jquery/' . 'jquery-1.7.2.min.js', false);
     ClientScript::AddSource($relativePath . 'Vendor/' . self::$CalendarPath . '/jquery/' . 'jquery-1.7.2.min.js', false);
     ClientScript::RaceAddSource('jQuery', $relativePath . 'Vendor/' . self::$CalendarPath . '/fullcalendar/' . 'fullcalendar.min.js');
     $this->Refresh(true);
 }