|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for ilTinyMCE:
Collaboration diagram for ilTinyMCE:Public Member Functions | |
| __construct () | |
| getPlugins () | |
| addPlugin (string $a_plugin_name) | |
| removePlugin (string $a_plugin_name) | |
| addRTESupport (int $obj_id, string $obj_type, string $a_module='', bool $allowFormElements=false, ?string $cfg_template=null, bool $hide_switch=false) | |
| 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) | |
| setRemoveImgContextMenuItem (bool $remove_img_context_menu_item) | |
| getRemoveImgContextMenuItem () | |
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, bool $hide_switch=false) | |
| 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 | |
| addInternalTinyMCEImageManager () | |
| handleImagePluginsBeforeRendering (array $tags) | |
| handleIliasImageManagerAdded () | |
| handleIliasImageManagerRemoved () | |
| handleImgContextMenuItem (ilTemplate $tpl) | |
| 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 |
Additional Inherited Members | |
Data Fields inherited from ilRTE | |
| const | ILIAS_IMG_MANAGER_PLUGIN = 'ilias_image_manager_plugin' |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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\MetaData\Repository\Validation\Data\__construct(), addInternalTinyMCEImageManager(), and setStyleSelect().
Here is the call graph for this function:| ilTinyMCE::_buildAdvancedBlockformatsFromHTMLTags | ( | array | $a_html_tags | ) |
| string[] | $a_html_tags |
Definition at line 373 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 419 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 633 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 543 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 656 of file class.ilTinyMCE.php.
References $lang, and 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 689 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 257 of file class.ilTinyMCE.php.
| ilTinyMCE::addCustomRTESupport | ( | int | $obj_id, |
| string | $obj_type, | ||
| array | $tags | ||
| ) |
Definition at line 269 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(), handleImagePluginsBeforeRendering(), handleImgContextMenuItem(), ilGlobalTemplateInterface\parseCurrentBlock(), ilGlobalTemplateInterface\setCurrentBlock(), and ilGlobalTemplateInterface\setVariable().
Here is the call graph for this function:
|
protected |
Definition at line 82 of file class.ilTinyMCE.php.
References ilRTE\addButton(), ilRTE\disableButtons(), and setRemoveImgContextMenuItem().
Referenced by __construct(), and handleIliasImageManagerAdded().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTinyMCE::addPlugin | ( | string | $a_plugin_name | ) |
Definition at line 139 of file class.ilTinyMCE.php.
References handleIliasImageManagerAdded().
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, |
||
| bool | $hide_switch = false |
||
| ) |
Definition at line 157 of file class.ilTinyMCE.php.
References $_COOKIE, $DIC, ilRTE\$lng, 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(), handleImagePluginsBeforeRendering(), handleImgContextMenuItem(), ilGlobalTemplateInterface\parseCurrentBlock(), ilGlobalTemplateInterface\setCurrentBlock(), ilGlobalTemplateInterface\setVariable(), ilGlobalTemplateInterface\touchBlock(), and ilLanguage\txt().
Here is the call graph for this function:| ilTinyMCE::addUserTextEditor | ( | string | $editor_selector | ) |
Definition at line 315 of file class.ilTinyMCE.php.
References _getEditorLanguage(), _getValidElementsFromHTMLTags(), getButtonsForUserTextEditor(), ilUtil\getNewContentStyleSheetLocation(), getStyleSelect(), ilUtil\getStyleSheetLocation(), and handleImgContextMenuItem().
Here is the call graph for this function:
|
protected |
| string[] | $buttontags |
Definition at line 347 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::getRemoveImgContextMenuItem | ( | ) |
Definition at line 1190 of file class.ilTinyMCE.php.
References $remove_img_context_menu_item.
Referenced by handleImgContextMenuItem().
Here is the caller graph for this function:| ilTinyMCE::getStyleSelect | ( | ) |
Definition at line 364 of file class.ilTinyMCE.php.
References $styleselect.
Referenced by addCustomRTESupport(), addRTESupport(), and addUserTextEditor().
Here is the caller graph for this function:
|
protected |
Definition at line 123 of file class.ilTinyMCE.php.
References addInternalTinyMCEImageManager().
Referenced by addPlugin().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 128 of file class.ilTinyMCE.php.
References ilRTE\disableButtons().
Referenced by removePlugin().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| string[] | $tags |
Definition at line 108 of file class.ilTinyMCE.php.
References ilRTE\disableButtons(), and setRemoveImgContextMenuItem().
Referenced by addCustomRTESupport(), and addRTESupport().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 248 of file class.ilTinyMCE.php.
References ilTemplate\blockExists(), getRemoveImgContextMenuItem(), and ilTemplate\touchBlock().
Referenced by addCustomRTESupport(), addRTESupport(), and addUserTextEditor().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTinyMCE::removeAllContextMenuItems | ( | ) |
Definition at line 264 of file class.ilTinyMCE.php.
| ilTinyMCE::removePlugin | ( | string | $a_plugin_name | ) |
Definition at line 148 of file class.ilTinyMCE.php.
References handleIliasImageManagerRemoved().
Here is the call graph for this function:
|
static |
Removes redundant seperators and removes ,, and , at the first or last position of the string.
| string | $a_string | A string |
Definition at line 1149 of file class.ilTinyMCE.php.
| ilTinyMCE::setRemoveImgContextMenuItem | ( | bool | $remove_img_context_menu_item | ) |
Definition at line 1185 of file class.ilTinyMCE.php.
References $remove_img_context_menu_item.
Referenced by addInternalTinyMCEImageManager(), and handleImagePluginsBeforeRendering().
Here is the caller graph for this function:
|
protected |
Definition at line 359 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.
Referenced by getRemoveImgContextMenuItem(), and setRemoveImgContextMenuItem().
|
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.