Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions | |
onDisplay ( $name, $content, $width, $height, $col, $row, $buttons=true, $id=null, $asset=null, $author=null, $params=[]) | |
includeRelativeFiles ($folder, $file) | |
static | resolveFileUrl ($path='') |
Variables | |
trait | DisplayTrait |
trait | ResolveFiles |
|
protected |
Compute the file paths to be included
string | $folder | Folder name to search in (i.e. images, css, js). |
string | $file | Path to file. |
Références $template, File\getExt(), JDEBUG, JPATH_ROOT, Joomla\Plugin\Editors\TinyMCE\PluginTraits\resolveFileUrl(), Uri\root(), et File\stripExt().
Référencé par HTMLHelper\image(), Joomla\Plugin\Editors\TinyMCE\PluginTraits\onDisplay(), HTMLHelper\script(), et HTMLHelper\stylesheet().
Joomla\Plugin\Editors\TinyMCE\PluginTraits\onDisplay | ( | $name, | |
$content, | |||
$width, | |||
$height, | |||
$col, | |||
$row, | |||
$buttons = true , |
|||
$id = null , |
|||
$asset = null , |
|||
$author = null , |
|||
$params = [] |
|||
) |
Display the editor area.
string | $name | The name of the editor area. |
string | $content | The content of the field. |
string | $width | The width of the editor area. |
string | $height | The height of the editor area. |
int | $col | The number of columns for the editor area. |
int | $row | The number of rows for the editor area. |
boolean | $buttons | True and the editor buttons will be displayed. |
string | $id | An optional ID for the textarea. If not supplied the name is used. |
string | $asset | The object asset |
object | $author | The author. |
array | $params | Associative array of editor parameters. |
If URL, just pass it to $content_css else, assume it is a file name in the current template folder
Predefine group as: Set 0: for Administrator, Editor, Super Users (4,7,8) Set 1: for Registered, Manager (2,6), all else are public
Références $buttons, $content, $description, $doc, $editor, $height, $id, $language, $name, $options, $params, $path, $title, $toolbar, $user, $val, $width, Text\_(), HTMLHelper\_(), Uri\base(), elseif, Folder\exists(), false, Folder\files(), Session\getFormToken(), InputFilter\getInstance(), Joomla\Plugin\Editors\TinyMCE\PluginTraits\includeRelativeFiles(), JDEBUG, JPATH_ROOT, null, LayoutHelper\render(), Uri\root(), et Text\script().
|
staticprotected |
Method that searches if file exists in given path and returns the relative path. If a minified version exists it will be preferred.
string | $path | The actual path of the file |
Références $path, $position, JDEBUG, JPATH_ROOT, et Uri\root().
Référencé par Joomla\Plugin\Editors\TinyMCE\PluginTraits\includeRelativeFiles().
trait DisplayTrait |
trait ResolveFiles |
Handles the editor.css files.