[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/plugins/editors/codemirror/ -> codemirror.php (summary)

(no description)

Copyright: (C) 2009 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 322 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PlgEditorCodemirror:: (4 methods):
  onInit()
  onDisplay()
  displayButtons()
  getFontInfo()


Class: PlgEditorCodemirror  - X-Ref

CodeMirror Editor Plugin.

onInit()   X-Ref
Initialises the Editor.

return: void

onDisplay($name,$content,$width,$height,$col,$row,$buttons = true,$id = null,$asset = null,$author = null,$params = array()   X-Ref
Display the editor area.

param: string   $name     The control name.
param: string   $content  The contents of the text area.
param: string   $width    The width of the text area (px or %).
param: string   $height   The height of the text area (px or %).
param: int      $col      The number of columns for the textarea.
param: int      $row      The number of rows for the textarea.
param: boolean  $buttons  True and the editor buttons will be displayed.
param: string   $id       An optional ID for the textarea (note: since 1.6). If not supplied the name is used.
param: string   $asset    Not used.
param: object   $author   Not used.
param: array    $params   Associative array of editor parameters.
return: string  HTML

displayButtons($name, $buttons, $asset, $author)   X-Ref
Displays the editor buttons.

param: string  $name     Button name.
param: mixed   $buttons  [array with button objects | boolean true to display buttons]
param: mixed   $asset    Unused.
param: mixed   $author   Unused.
return: string|void

getFontInfo($font)   X-Ref
Gets font info from the json data file

param: string  $font  A key from the $fonts array.
return: object



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer