-
Notifications
You must be signed in to change notification settings - Fork 35
icms_plugins_EditorHandler
Raimondas Rimkevičius edited this page Mar 9, 2020
·
1 revision
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!
Editor framework
- Class name: icms_plugins_EditorHandler
- Namespace:
private string $root_path
Path where is editor
- Visibility: private
public bool $nohtml = \false
No HTML mode?
- Visibility: public
public array $allowed_editors = array()
What editors to allow?
- Visibility: public
private string $_type
Editor type
- Visibility: private
mixed icms_plugins_EditorHandler::__construct(string type)
Constructor
- Visibility: public
- type string - <p>Editor type</p>
object icms_plugins_EditorHandler::getInstance(mixed type)
Access the only instance of this class
- Visibility: public
- This method is static.
- type mixed
mixed icms_plugins_EditorHandler::get(string name, array options, bool noHtml, string OnFailure)
- Visibility: public
- name string - <p>Editor name which is actually the folder name</p>
- options array - <p>editor options: $key => $val</p>
- noHtml bool - <p>dohtml disabled</p>
- OnFailure string - <p>a pre-validated editor that will be used if the required editor is failed to create</p>
array icms_plugins_EditorHandler::getList(bool noHtml)
Gets list of available editors
- Visibility: public
- noHtml bool - <p>is this an editor with no html options?</p>
string icms_plugins_EditorHandler::render(mixed editor)
Render the editor
- Visibility: public
- editor mixed
mixed icms_plugins_EditorHandler::setConfig(mixed editor, string options)
Sets the config of the editor
- Visibility: public
- editor mixed
- options string - <p>Options in the configuration to set</p>
object icms_plugins_EditorHandler::_loadEditor(string name, string options)
Loads the editor
- Visibility: public
- name string - <p>Name of the editor to load</p>
- options string - <p>Options in the editor to load (configuration)</p>
string icms_plugins_EditorHandler::_getRootPath(string type)
Determines the root path of the editor type
- Visibility: private
- type string
array icms_plugins_EditorHandler::getListByType(string type)
Retrieve a list of the available editors, by type
- Visibility: public
- This method is static.
- type string