Class PlgEditorNone

Description

Plain Textarea Editor Plugin

  • since: 1.5

Located in /plugins/editors/none/none.php (line 19)

JObject
   |
   --JEvent
      |
      --JPlugin
         |
         --PlgEditorNone
Method Summary
 string onDisplay (string $name, string $content, string $width, string $height, integer $col, integer $row, [boolean $buttons = true], [string $id = null], [string $asset = null], [object $author = null], [array $params = array()])
 string onGetContent (string $id)
 boolean onGetInsertMethod (string $id)
 string onInit ()
 void onSave ()
 string onSetContent (string $id, string $html)
 string _displayButtons (string $name, mixed $buttons, string $asset, object $author)
Variables
Methods
onDisplay (line 134)

Display the editor area.

  • access: public
string onDisplay (string $name, string $content, string $width, string $height, integer $col, integer $row, [boolean $buttons = true], [string $id = null], [string $asset = null], [object $author = null], [array $params = array()])
  • 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.
onGetContent (line 76)

Get the editor content.

  • access: public
string onGetContent (string $id)
  • string $id: The id of the editor field.
onGetInsertMethod (line 99)
  • return: returns true when complete
  • access: public
boolean onGetInsertMethod (string $id)
  • string $id: The id of the editor field
onInit (line 29)

Method to handle the onInitEditor event.

  • Initialises the Editor

  • return: JavaScript Initialization string
  • since: 1.5
  • access: public
string onInit ()
onSave (line 64)

Copy editor content to form field.

Not applicable in this editor.

  • access: public
void onSave ()
onSetContent (line 89)

Set the editor content.

  • access: public
string onSetContent (string $id, string $html)
  • string $id: The id of the editor field.
  • string $html: The content to set.
_displayButtons (line 168)

Displays the editor buttons.

  • return: HTML
  • access: public
string _displayButtons (string $name, mixed $buttons, string $asset, object $author)
  • string $name: The control name.
  • mixed $buttons: [array with button objects | boolean true to display buttons]
  • string $asset: The object asset
  • object $author: The author.

Inherited Methods

Inherited From JPlugin

 JPlugin::__construct()
 JPlugin::loadLanguage()

Inherited From JEvent

 JEvent::__construct()
 JEvent::update()

Inherited From JObject

 JObject::__construct()
 JObject::def()
 JObject::get()
 JObject::getError()
 JObject::getErrors()
 JObject::getProperties()
 JObject::set()
 JObject::setError()
 JObject::setProperties()
 JObject::__toString()

Documentation generated on Tue, 19 Nov 2013 15:09:34 +0100 by phpDocumentor 1.4.3