Editor
Implements \Joomla\Event\DispatcherAwareInterfaceEditor class to handle WYSIWYG editors
since |
1.5 |
---|---|
package |
Joomla CMS |
Methods
__construct
Constructor
__construct(string editor = 'none', \Joomla\Event\DispatcherInterface dispatcher = null) : mixed
Arguments
- editor
string
The editor name- dispatcher
\Joomla\Event\DispatcherInterface
The event dispatcher we're going to use
Response
mixed
_loadEditor
Load the editor
_loadEditor(array config = array()) : mixed
since |
1.5 |
---|
Arguments
- config
array
Associative array of editor config parameters
Response
mixed
display
Display the editor area.
display(string name, string html, string width, string height, int col, int row, bool buttons = true, string id = null, string asset = null, object author = null, array params = array()) : string
since |
1.5 |
---|
Arguments
- name
string
The control name.- html
string
The contents of the text area.- width
string
The width of the text area (px or %).- height
string
The height of the text area (px or %).- col
int
The number of columns for the textarea.- row
int
The number of rows for the textarea.- buttons
bool
True and the editor buttons will be displayed.- id
string
An optional ID for the textarea (note: since 1.6). If not supplied the name is used.- asset
string
The object asset- author
object
The author.- params
array
Associative array of editor parameters.
Response
string
getButtons
Get the editor extended buttons (usually from plugins)
getButtons(string editor, mixed buttons = true) : array
since |
1.5 |
---|
Arguments
- editor
string
The name of the editor.- buttons
mixed
Can be boolean or array, if boolean defines if the buttons are displayed, if array defines a list of buttons not to show.
Response
array
getInstance
Returns the global Editor object, only creating it if it doesn't already exist.
getInstance(string editor = 'none') : \Joomla\CMS\Editor\Editor
since |
1.5 |
---|
Arguments
- editor
string
The editor to use.
Response
\Joomla\CMS\Editor\Editor
The Editor object.
initialise
Initialise the editor
initialise() : void
since |
1.5 |
---|