|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Tiny MCE editor class. More...
Inheritance diagram for ilTinyMCE:
Collaboration diagram for ilTinyMCE:Public Member Functions | |
| __construct () | |
| getPlugins () | |
| addRTESupport (int $obj_id, string $obj_type, string $a_module='', bool $allowFormElements=false, ?string $cfg_template=null) | |
| addContextmenuItem (string $item='') | |
| removeAllContextMenuItems () | |
| addCustomRTESupport (int $obj_id, string $obj_type, array $tags) | |
| addUserTextEditor (string $editor_selector) | |
| getStyleSelect () | |
| _buildAdvancedBlockformatsFromHTMLTags (array $a_html_tags) | |
| _buildAdvancedButtonsFromHTMLTags (int $a_buttons_section, array $a_html_tags) | |
| _buildAdvancedTableButtonsFromHTMLTags (array $a_html_tags) | |
| _getValidElementsFromHTMLTags (array $a_html_tags) | |
Public Member Functions inherited from ilRTE | |
| __construct () | |
| addPlugin (string $a_plugin_name) | |
| addButton (string $a_button_name) | |
| removePlugin (string $a_plugin_name) | |
| removeAllPlugins () | |
| removeButton (string $a_button_name) | |
| addRTESupport (int $obj_id, string $obj_type, string $a_module='', bool $allowFormElements=false, ?string $cfg_template=null) | |
| addUserTextEditor (string $editor_selector) | |
| addCustomRTESupport (int $obj_id, string $obj_type, array $tags) | |
| Adds custom support for an RTE in an ILIAS form. More... | |
| setRTERootBlockElement (?string $a_root_block_element) | |
| getRTERootBlockElement () | |
| disableButtons ($a_button) | |
| Sets buttons which should be disabled in the RTE. More... | |
| getDisabledButtons (bool $as_list=true) | |
| Returns the disabled RTE buttons. More... | |
| getInitialWidth () | |
| setInitialWidth (?int $initialWidth) | |
Static Public Member Functions | |
| static | removeRedundantSeparators (string $a_string) |
| Removes redundant seperators and removes ,, and , at the first or last position of the string. More... | |
Static Public Member Functions inherited from ilRTE | |
| static | _getRTEClassname () |
| static | _cleanupMediaObjectUsage (string $a_text, string $a_usage_type, int $a_usage_id) |
| Synchronises appearances of media objects in $a_text with media object usage table. More... | |
| static | _replaceMediaObjectImageSrc (string $a_text, int $a_direction=0, string $nic='') |
| Replaces image source from mob image urls with the mob id or replaces mob id with the correct image source. More... | |
| static | _getMediaObjects (string $a_text, int $a_direction=0) |
| Returns all media objects found in the passed string. More... | |
Protected Member Functions | |
| getButtonsForUserTextEditor (array $buttontags) | |
| setStyleSelect (bool $a_styleselect) | |
| _buildButtonsFromHTMLTags (array $a_html_tags) | |
| _getEditorLanguage () | |
Protected Attributes | |
| string | $mode = 'textareas' |
| string | $version = '' |
| bool | $styleselect = false |
| bool | $remove_img_context_menu_item = false |
| array | $contextMenuItems |
Protected Attributes inherited from ilRTE | |
| ilGlobalTemplateInterface | $tpl |
| ilCtrlInterface | $ctrl |
| ilObjUser | $user |
| ilLanguage | $lng |
| AgentDetermination | $browser |
| ilIniFile | $client_init |
| int | $initialWidth = null |
| string | $root_block_element = null |
| array | $plugins = [] |
| array | $buttons = [] |
| array | $disabled_buttons = [] |
Static Protected Attributes | |
| static bool | $renderedToGlobalTemplate = false |
Tiny MCE editor class.
This class provides access methods for Tiny MCE
Definition at line 30 of file class.ilTinyMCE.php.
| ilTinyMCE::__construct | ( | ) |
Definition at line 43 of file class.ilTinyMCE.php.
References ILIAS\GlobalScreen\Provider\__construct(), and setStyleSelect().
Here is the call graph for this function:| ilTinyMCE::_buildAdvancedBlockformatsFromHTMLTags | ( | array | $a_html_tags | ) |
| string[] | $a_html_tags |
Definition at line 265 of file class.ilTinyMCE.php.
Referenced by _buildAdvancedButtonsFromHTMLTags(), _buildButtonsFromHTMLTags(), addCustomRTESupport(), and addRTESupport().
Here is the caller graph for this function:| ilTinyMCE::_buildAdvancedButtonsFromHTMLTags | ( | int | $a_buttons_section, |
| array | $a_html_tags | ||
| ) |
| int | $a_buttons_section | |
| string[] | $a_html_tags |
Definition at line 311 of file class.ilTinyMCE.php.
References $res, _buildAdvancedBlockformatsFromHTMLTags(), and ilRTE\getDisabledButtons().
Referenced by addCustomRTESupport(), and addRTESupport().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTinyMCE::_buildAdvancedTableButtonsFromHTMLTags | ( | array | $a_html_tags | ) |
| string[] | $a_html_tags |
Definition at line 521 of file class.ilTinyMCE.php.
References $res, and ilRTE\getDisabledButtons().
Referenced by addCustomRTESupport(), and addRTESupport().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| string[] | $a_html_tags |
Definition at line 433 of file class.ilTinyMCE.php.
References $res, _buildAdvancedBlockformatsFromHTMLTags(), and ilRTE\getDisabledButtons().
Referenced by getButtonsForUserTextEditor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 544 of file class.ilTinyMCE.php.
References ILIAS\Repository\user().
Referenced by addCustomRTESupport(), addRTESupport(), and addUserTextEditor().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTinyMCE::_getValidElementsFromHTMLTags | ( | array | $a_html_tags | ) |
| string[] | $a_html_tags |
Definition at line 577 of file class.ilTinyMCE.php.
Referenced by addCustomRTESupport(), addRTESupport(), and addUserTextEditor().
Here is the caller graph for this function:| ilTinyMCE::addContextmenuItem | ( | string | $item = '' | ) |
Definition at line 153 of file class.ilTinyMCE.php.
| ilTinyMCE::addCustomRTESupport | ( | int | $obj_id, |
| string | $obj_type, | ||
| array | $tags | ||
| ) |
Definition at line 165 of file class.ilTinyMCE.php.
References $_COOKIE, ilRTE\$tpl, _buildAdvancedBlockformatsFromHTMLTags(), _buildAdvancedButtonsFromHTMLTags(), _buildAdvancedTableButtonsFromHTMLTags(), _getEditorLanguage(), _getValidElementsFromHTMLTags(), CLIENT_ID, ilRTE\disableButtons(), ilGlobalTemplateInterface\get(), ilFileUtils\getFileSizeInfo(), ilUtil\getNewContentStyleSheetLocation(), ilRTE\getRTERootBlockElement(), getStyleSelect(), ilGlobalTemplateInterface\parseCurrentBlock(), ilGlobalTemplateInterface\setCurrentBlock(), and ilGlobalTemplateInterface\setVariable().
Here is the call graph for this function:| ilTinyMCE::addRTESupport | ( | int | $obj_id, |
| string | $obj_type, | ||
| string | $a_module = '', |
||
| bool | $allowFormElements = false, |
||
| ?string | $cfg_template = null |
||
| ) |
Definition at line 77 of file class.ilTinyMCE.php.
References $_COOKIE, ilRTE\$tpl, _buildAdvancedBlockformatsFromHTMLTags(), _buildAdvancedButtonsFromHTMLTags(), _buildAdvancedTableButtonsFromHTMLTags(), _getEditorLanguage(), ilObjAdvancedEditing\_getRichTextEditor(), ilObjAdvancedEditing\_getRichTextEditorUserState(), ilObjAdvancedEditing\_getUsedHTMLTags(), _getValidElementsFromHTMLTags(), ilObjAdvancedEditing\_setRichTextEditorUserState(), ilGlobalTemplateInterface\blockExists(), CLIENT_ID, ilGlobalTemplateInterface\get(), ilFileUtils\getFileSizeInfo(), ilRTE\getInitialWidth(), ilUtil\getNewContentStyleSheetLocation(), ilRTE\getRTERootBlockElement(), getStyleSelect(), ilUtil\getStyleSheetLocation(), ilGlobalTemplateInterface\parseCurrentBlock(), ilGlobalTemplateInterface\setCurrentBlock(), ilGlobalTemplateInterface\setVariable(), and ilGlobalTemplateInterface\touchBlock().
Here is the call graph for this function:| ilTinyMCE::addUserTextEditor | ( | string | $editor_selector | ) |
Definition at line 208 of file class.ilTinyMCE.php.
References _getEditorLanguage(), _getValidElementsFromHTMLTags(), getButtonsForUserTextEditor(), ilUtil\getNewContentStyleSheetLocation(), getStyleSelect(), and ilUtil\getStyleSheetLocation().
Here is the call graph for this function:
|
protected |
| string[] | $buttontags |
Definition at line 239 of file class.ilTinyMCE.php.
References _buildButtonsFromHTMLTags().
Referenced by addUserTextEditor().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTinyMCE::getPlugins | ( | ) |
| ilTinyMCE::getStyleSelect | ( | ) |
Definition at line 256 of file class.ilTinyMCE.php.
References $styleselect.
Referenced by addCustomRTESupport(), addRTESupport(), and addUserTextEditor().
Here is the caller graph for this function:| ilTinyMCE::removeAllContextMenuItems | ( | ) |
Definition at line 160 of file class.ilTinyMCE.php.
|
static |
Removes redundant seperators and removes ,, and , at the first or last position of the string.
| string | $a_string | A string |
Definition at line 1037 of file class.ilTinyMCE.php.
|
protected |
Definition at line 251 of file class.ilTinyMCE.php.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Definition at line 41 of file class.ilTinyMCE.php.
|
protected |
Definition at line 34 of file class.ilTinyMCE.php.
|
protected |
Definition at line 37 of file class.ilTinyMCE.php.
|
staticprotected |
Definition at line 32 of file class.ilTinyMCE.php.
|
protected |
Definition at line 36 of file class.ilTinyMCE.php.
Referenced by getStyleSelect().
|
protected |
Definition at line 35 of file class.ilTinyMCE.php.