Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
onInit () | |
onSave ($editor) | |
onGetContent ($id) | |
onSetContent ($id, $html) | |
onGetInsertMethod ($id) | |
onDisplay ($name, $content, $width, $height, $col, $row, $buttons=true, $id=null, $asset=null, $author=null, $params=array()) | |
_displayButtons ($name, $buttons, $asset, $author) | |
Plain Textarea Editor Plugin
_displayButtons | ( | $name, | |
$buttons, | |||
$asset, | |||
$author | |||
) |
onDisplay | ( | $name, | |
$content, | |||
$width, | |||
$height, | |||
$col, | |||
$row, | |||
$buttons = true , |
|||
$id = null , |
|||
$asset = null , |
|||
$author = null , |
|||
$params = array() |
|||
) |
Display the editor area.
string | $name | The control name. |
string | $content | 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. |
Références $asset, $author, $buttons, $content, $editor, $height, $id, $name, $params, $readonly, $row, et $width.
onGetContent | ( | $id | ) |
Get the editor content.
string | $id | The id of the editor field. |
Références $id, et json_encode.
onGetInsertMethod | ( | $id | ) |
Inserts html code into the editor
string | $id | The id of the editor field |
onInit | ( | ) |
Method to handle the onInitEditor event.
onSave | ( | $editor | ) |
Copy editor content to form field.
Not applicable in this editor.
string | $editor | the editor id |
onSetContent | ( | $id, | |
$html | |||
) |
Set the editor content.
string | $id | The id of the editor field. |
string | $html | The content to set. |
Références $html, $id, et json_encode.