API15

Difference between revisions of "JEditor/initialise"

From Joomla! Documentation

< API15:JEditor
(New page: ===Description=== Initialize the editor <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </sp...)
 
m (removing red link to edit, no existant pages)
Line 3: Line 3:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JEditor/initialise|Edit Descripton]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
  
{{Description:JEditor/initialise}}
+
<! removed transcluded page call, red link never existed >
  
 
===Syntax===
 
===Syntax===
Line 43: Line 43:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JEditor/initialise|Edit See Also]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
{{SeeAlso:JEditor/initialise}}
+
<! removed transcluded page call, red link never existed >
  
 
===Examples===
 
===Examples===
Line 58: Line 58:
 
  format= ,,,
 
  format= ,,,
 
</dpl>
 
</dpl>
 +
[[Category:Archived pages API15]]

Revision as of 11:46, 12 May 2013

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Initialize the editor

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax[edit]

initialise()


Defined in[edit]

libraries/joomla/html/editor.php

Importing[edit]

jimport( 'joomla.html.editor' );

Source Body[edit]

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 edit link to red link >] <! removed transcluded page call, red link never existed >

Examples[edit]

<CodeExamplesForm />