API16:JEditor/initialise
From Joomla! Documentation
Description
Initialise the editor
<! removed transcluded page call, red link never existed >
Syntax
initialise()
Defined in
libraries/joomla/html/editor.php
Importing
jimport( 'joomla.html.editor' );
Source Body
public function initialise()
{
//check if editor is already loaded
if (is_null(($this->_editor))) {
return;
}
$args['event'] = 'onInit';
$return = '';
$results[] = $this->_editor->update($args);
foreach ($results as $result) {
if (trim($result)) {
//$return .= $result;
$return = $result;
}
}
$document = &JFactory::getDocument();
$document->addCustomTag($return);
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples