Editor
class Editor extends JObject
Editor class to handle WYSIWYG editors
Methods
__construct(
string $editor = 'none')
Constructor
static
Editor
getInstance(
string $editor = 'none')
Returns the global Editor object, only creating it if it doesn't already exist.
mixed
getState()
Get the state of the Editor object
void
attach(
array|object $observer)
Attach an observer object
boolean
detach(
object $observer)
Detach an observer object
void
initialise()
Initialise the editor
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())
Display the editor area.
string
save(
string $editor)
Save the editor content
string
getContent(
string $editor)
Get the editor contents
string
setContent(
string $editor,
string $html)
Set the editor contents
array
getButtons(
string $editor,
mixed $buttons = true)
Get the editor extended buttons (usually from plugins)
Details
static
Editor
getInstance(
string $editor = 'none')
Returns the global Editor object, only creating it if it doesn't already exist.