Actions

API17

Difference between revisions of "JEditor::getInstance"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JEditor::getInstance|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JEditor::getInstance|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JEditor::getInstance ($editor= 'none')
+
public static function getInstance ($editor= 'none')
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 25: Line 24:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' The Editor object.
The Editor object.
+
* '''Defined''' on line 69 of libraries/joomla/html/editor.php
===Defined in===
+
* '''Referenced by'''
libraries/joomla/html/editor.php (line 69)
+
** [[JFactory::getEditor/11.1|JFactory::getEditor]]
* see source code in [[jplatform:html/editor.php#cl-69|BitBucket]]
+
===Referenced by===
+
* [[JFactory::getEditor/11.1|JFactory::getEditor]]
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JEditor::getInstance source code''' on [[jplatform:html/editor.php#cl-61|BitBucket]]
 +
* {{JVer|11.1}} Class [[JEditor/11.1|JEditor]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Html/11.1|Html]]
 +
* [[JEditor::getInstance|Other versions of JEditor::getInstance]]
 +
{{SeeAlso:JEditor::getInstance}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JEditor::getInstance|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JEditor::getInstance|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JEditor/11.1|JEditor]]
+
===User contributed notes===
* [[JEditor::getInstance|Other versions of this method]]
+
{{SeeAlso:JEditor::getInstance}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 47: Line 45:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JEditor]][[Category:JEditor::getInstance]]</noinclude>
 
<noinclude>[[Category:JEditor]][[Category:JEditor::getInstance]]</noinclude>

Revision as of 19:50, 27 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JEditor::getInstance

Description

Returns the global Editor object, only creating it if it doesn't already exist.

Description:JEditor::getInstance [Edit Descripton]

public static function getInstance ($editor= 'none')
Parameter Type Default Description
$editor string 'none' The editor to use.
  • Returns The Editor object.
  • Defined on line 69 of libraries/joomla/html/editor.php
  • Referenced by

See also

SeeAlso:JEditor::getInstance [Edit See Also]

User contributed notes

<CodeExamplesForm />