private function returnGlobalEvents()
	{
		static $returnedEvents;
		$out = "";

		if (!isset($returnedEvents)) {
			$returnedEvents = array();
		}

		if (!empty($this->globalEvents)) {
			foreach ($this->globalEvents as $eventName => $handlers) {
				foreach ($handlers as $handler => $code) {
					if (!isset($returnedEvents[$eventName])) {
						$returnedEvents[$eventName] = array();
					}
					// Return only new events
					if (!in_array($code, $returnedEvents[$eventName])) {
						$out .= ($code ? "\n" : "") . "CKEDITOR.on('". $eventName ."', $code);";
						$returnedEvents[$eventName][] = $code;
					}
				}
			}
		}

		return $out;
	}
private function returnGlobalEvents()
	{
		static $returnedEvents;
		$out = "";

		if (!isset($returnedEvents)) {
			$returnedEvents = array();
		}

		if (!empty($this->globalEvents)) {
			foreach ($this->globalEvents as $eventName => $handlers) {
				foreach ($handlers as $handler => $code) {
					if (!isset($returnedEvents[$eventName])) {
						$returnedEvents[$eventName] = array();
					}
					// Return only new events
					if (!in_array($code, $returnedEvents[$eventName])) {
						$out .= ($code ? "\n" : "") . "CKEDITOR.on('". $eventName ."', $code);";
						$returnedEvents[$eventName][] = $code;
					}
				}
			}
		}

		return $out;
	}
private function returnGlobalEvents ( ) { static $ returnedEvents ; $ out = "" ; if ( ! isset ( $ returnedEvents ) ) { $ returnedEvents = array ( ) ; } if ( ! empty ( $ this -> globalEvents ) ) { foreach ( $ this -> globalEvents as $ eventName => $ handlers ) { foreach ( $ handlers as $ handler => $ code ) { if ( ! isset ( $ returnedEvents [ $ eventName ] ) ) { $ returnedEvents [ $ eventName ] = array ( ) ; } // Return only new events if ( ! in_array ( $ code , $ returnedEvents [ $ eventName ] ) ) { $ out .= ( $ code ? "\n" : "" ) . "CKEDITOR.on('" . $ eventName . "', $code);" ; $ returnedEvents [ $ eventName ] [ ] = $ code ; } } } } return $ out ; }
Return global event handlers.
Return global event handlers .