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é
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe PlgEditorNone
+ Graphe d'héritage de PlgEditorNone:

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)
 

Description détaillée

Plain Textarea Editor Plugin

Depuis
1.5

Documentation des fonctions membres

◆ _displayButtons()

_displayButtons (   $name,
  $buttons,
  $asset,
  $author 
)

Displays the editor buttons.

Paramètres
string$nameThe control name.
mixed$buttons[array with button objects | boolean true to display buttons]
string$assetThe object asset
object$authorThe author.
Renvoie
void|string HTML

Références $asset, $author, $buttons, et $name.

◆ onDisplay()

onDisplay (   $name,
  $content,
  $width,
  $height,
  $col,
  $row,
  $buttons = true,
  $id = null,
  $asset = null,
  $author = null,
  $params = array() 
)

Display the editor area.

Paramètres
string$nameThe control name.
string$contentThe contents of the text area.
string$widthThe width of the text area (px or %).
string$heightThe height of the text area (px or %).
integer$colThe number of columns for the textarea.
integer$rowThe number of rows for the textarea.
boolean$buttonsTrue and the editor buttons will be displayed.
string$idAn optional ID for the textarea (note: since 1.6). If not supplied the name is used.
string$assetThe object asset
object$authorThe author.
array$paramsAssociative array of editor parameters.
Renvoie
string

Références $asset, $author, $buttons, $content, $editor, $height, $id, $name, $params, $readonly, $row, et $width.

◆ onGetContent()

onGetContent (   $id)

Get the editor content.

Paramètres
string$idThe id of the editor field.
Renvoie
string
Obsolète:
4.0 Use directly the returned code

Références $id, et json_encode.

◆ onGetInsertMethod()

onGetInsertMethod (   $id)

Inserts html code into the editor

Paramètres
string$idThe id of the editor field
Renvoie
void
Obsolète:
4.0

◆ onInit()

onInit ( )

Method to handle the onInitEditor event.

  • Initialises the Editor
Renvoie
void
Depuis
1.5

◆ onSave()

onSave (   $editor)

Copy editor content to form field.

Not applicable in this editor.

Paramètres
string$editorthe editor id
Renvoie
void
Obsolète:
4.0 Use directly the returned code

◆ onSetContent()

onSetContent (   $id,
  $html 
)

Set the editor content.

Paramètres
string$idThe id of the editor field.
string$htmlThe content to set.
Renvoie
string
Obsolète:
4.0 Use directly the returned code

Références $html, $id, et json_encode.


La documentation de cette classe a été générée à partir du fichier suivant :