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 ($id) | |
onGetContent ($id) | |
onSetContent ($id, $content) | |
onGetInsertMethod () | |
onDisplay ( $name, $content, $width, $height, $col, $row, $buttons=true, $id=null, $asset=null, $author=null, $params=array()) | |
Fonctions membres protégées | |
displayButtons ($name, $buttons, $asset, $author) | |
getFontInfo ($font) | |
loadKeyMap ($keyMap) | |
Attributs protégés | |
$autoloadLanguage = true | |
$modeAlias = array() | |
CodeMirror Editor Plugin.
|
protected |
|
protected |
Gets font info from the json data file
string | $font | A key from the $fonts array. |
Références null.
|
protected |
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 %). |
int | $col | The number of columns for the textarea. |
int | $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 | Not used. |
object | $author | Not used. |
array | $params | Associative array of editor parameters. |
Références $asset, $author, $buttons, $content, $dispatcher, $displayData, $height, $id, $name, $options, $params, $results, $row, $width, JEventDispatcher\getInstance(), et JDEBUG.
onGetContent | ( | $id | ) |
Get the editor content.
string | $id | The id of the editor field. |
Références $id, et json_encode.
onGetInsertMethod | ( | ) |
Adds the editor specific insert method.
Références getDocument.
onInit | ( | ) |
Initialises the Editor.
Références $dispatcher, $displayData, $doc, getDocument, et JEventDispatcher\getInstance().
onSave | ( | $id | ) |
Copy editor content to form field.
string | $id | The id of the editor field. |
Références $id, et json_encode.
onSetContent | ( | $id, | |
$content | |||
) |
Set the editor content.
string | $id | The id of the editor field. |
string | $content | The content to set. |
Références $content, $id, et json_encode.
|
protected |
|
protected |