Returns the global Editor object, only creating it if it doesn't already exist.
static
JEditor
getInstance
([
string $editor =
'none'])
-
string
$editor: The editor to use.
Constructor
JEditor
__construct
([string $editor = 'none'])
-
string
$editor: The editor name
Redefinition of:
- JObject::__construct()
- Class constructor, overridden in descendant classes.
Attach an observer object
void
attach
(object $observer)
-
object
$observer: An observer object to attach
Detach an observer object
boolean
detach
(object $observer)
-
object
$observer: An observer object to detach.
Display the editor area.
string
display
(string $name, string $html, string $width, string $height, integer $col, integer $row, [boolean $buttons = true], [string $id = null], [string $asset = null], [object $author = null], [array $params = array()])
-
string
$name: The control name.
-
string
$html: The contents of the text area.
-
string
$width: The width of the text area (px or %).
-
string
$height: The height of the text area (px or %).
-
integer
$col: The number of columns for the textarea.
-
integer
$row: The number of rows for the textarea.
-
boolean
$buttons: True and the editor buttons will be displayed.
-
string
$id: An optional ID for the textarea (note: since 1.6). If not supplied the name is used.
-
string
$asset: The object asset
-
object
$author: The author.
-
array
$params: Associative array of editor parameters.
Get the editor extended buttons (usually from plugins)
array
getButtons
(string $editor, [mixed $buttons = true])
-
string
$editor: The name of the editor.
-
mixed
$buttons: Can be boolean or array, if boolean defines if the buttons are displayed, if array defines a list of buttons not to show.
Get the editor contents
string
getContent
(string $editor)
-
string
$editor: The name of the editor control
Get the state of the JEditor object
mixed
getState
()
Initialise the editor
void
initialise
()
Save the editor content
string
save
(string $editor)
-
string
$editor: The name of the editor control
Set the editor contents
string
setContent
(string $editor, string $html)
-
string
$editor: The name of the editor control
-
string
$html: The contents of the text area
Load the editor
mixed
_loadEditor
([array $config = array()])
-
array
$config: Associative array of editor config paramaters
Inherited Methods
Inherited From JObject
JObject::__construct()
JObject::def()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::__toString()