|
UNA
|
Public Member Functions | |
| getObjectName () | |
| setCustomConf ($s) | |
| setCustomPlugins ($sPlugins) | |
| setCustomToolbarButtons ($sButtons) | |
| getWidth ($iViewMode) | |
| getSkins ($bFullInfo=false) | |
| setSkin ($sSkin) | |
| attachEditor ($sSelector, $iViewMode, $bDynamicMode=false) | |
Static Public Member Functions | |
| static | getObjectInstance ($sObject=false, $oTemplate=false) |
| Static Public Member Functions inherited from iBxDolFactoryObject | |
| static | getObjectInstance ($sObject) |
Protected Member Functions | |
| __construct ($aObject) | |
| _addJsCss ($bDynamicMode=false) | |
| _replaceMarkers ($s, $a) | |
Protected Attributes | |
| $_sObject | |
| $_aObject | |
| $_sConfCustom = '' | |
| $_sButtonsCustom = false | |
| $_sPluginsCustom = false | |
| $_sSkin | |
| $_aSkins | |
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:
|
protected |
Constructor
| $aObject | array of editor options |
|
protected |
Add css/js files which are needed for editor display and functionality.
|
protected |
Replace provided markers string.
| $s | - string to replace markers in |
| $a | - markers array |
| BxDolEditor::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: BX_EDITOR_STANDARD, BX_EDITOR_MINI, BX_EDITOR_FULL |
| $bDynamicMode | - is AJAX mode or not, the HTML with editor area is loaded synamically. |
|
static |
Get editor object instance by object name
| $sObject | object name |
| BxDolEditor::getObjectName | ( | ) |
Get object name
| BxDolEditor::getSkins | ( | $bFullInfo = false | ) |
Get a list of available skins.
| BxDolEditor::getWidth | ( | $iViewMode | ) |
Get minimal width which is neede for editor for the provided view mode
| BxDolEditor::setCustomConf | ( | $s | ) |
Set custom editor configuration options
| BxDolEditor::setCustomPlugins | ( | $sPlugins | ) |
Set custom plugins
| BxDolEditor::setCustomToolbarButtons | ( | $sButtons | ) |
Set custom toolbar