|
Cheetah
|
Public Member Functions | |
| __construct ($aObject) | |
| getObjectName () | |
| getWidth ($iViewMode) | |
| attachEditor ($sSelector, $iViewMode, $bDynamicMode=false) | |
Static Public Member Functions | |
| static | getObjectInstance ($sObject=false) |
Protected Member Functions | |
| _addJsCss ($bDynamicMode=false) | |
| _replaceMarkers ($s, $a) | |
Protected Attributes | |
| $_sObject | |
| $_aObject | |
WYSIWYG editors.
Site owner can choose which visual editor can be user on the site.
Default visual editor is stored in 'sys_editor_default' setting option.
Add record to 'sys_objects_editor' table:
Apply visual editor to textarea:
Definition at line 67 of file ChWsbEditor.php.
| ChWsbEditor::__construct | ( | $aObject | ) |
Constructor
| $aObject | array of editor options |
Definition at line 76 of file ChWsbEditor.php.
|
protected |
Add css/js files which are needed for editor display and functionality.
Definition at line 143 of file ChWsbEditor.php.
|
protected |
Replace provided markers string.
| $s | - string to replace markers in |
| $a | - markers array |
Definition at line 154 of file ChWsbEditor.php.
| ChWsbEditor::attachEditor | ( | $sSelector, | |
| $iViewMode, | |||
$bDynamicMode = false |
|||
| ) |
Attach editor to HTML element, in most cases - textarea.
| $sSelector | - jQuery selector to attach editor to. |
| $iViewMode | - editor view mode: CH_EDITOR_STANDARD, CH_EDITOR_MINI, CH_EDITOR_FULL |
| $bDynamicMode | - is AJAX mode or not, the HTML with editor area is loaded synamically. |
Reimplemented in ChBaseEditorTinyMCE.
Definition at line 135 of file ChWsbEditor.php.
|
static |
Get editor object instance by object name
| $sObject | object name |
Definition at line 87 of file ChWsbEditor.php.
| ChWsbEditor::getObjectName | ( | ) |
Get object name
Definition at line 116 of file ChWsbEditor.php.
| ChWsbEditor::getWidth | ( | $iViewMode | ) |
Get minimal width which is neede for editor for the provided view mode
Reimplemented in ChBaseEditorTinyMCE.
Definition at line 124 of file ChWsbEditor.php.
|
protected |
Definition at line 70 of file ChWsbEditor.php.
|
protected |
Definition at line 69 of file ChWsbEditor.php.