public function initialise()
	{
		if (is_null($this->editor))
		{
			return;
		}

		$return = '';
		$results[] = $this->editor->onInit();

		foreach ($results as $result)
		{
			if (trim($result))
			{
				//$return .= $result;
				$return = $result;
			}
		}

		$document = \App::get('document');
		if ($document->getType() != 'html')
		{
			return;
		}
		$document->addCustomTag($return);
	}
public function initialise()
	{
		if (is_null($this->editor))
		{
			return;
		}

		$return = '';
		$results[] = $this->editor->onInit();

		foreach ($results as $result)
		{
			if (trim($result))
			{
				//$return .= $result;
				$return = $result;
			}
		}

		$document = \App::get('document');
		if ($document->getType() != 'html')
		{
			return;
		}
		$document->addCustomTag($return);
	}
public function initialise ( ) { if ( is_null ( $ this -> editor ) ) { return ; } $ return = '' ; $ results [ ] = $ this -> editor -> onInit ( ) ; foreach ( $ results as $ result ) { if ( trim ( $ result ) ) { //$return .= $result; $ return = $ result ; } } $ document = \ App :: get ( 'document' ) ; if ( $ document -> getType ( ) != 'html' ) { return ; } $ document -> addCustomTag ( $ return ) ; }
Initialise the editor

@return  void
Initialise the editor