|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Tiny MCE editor class. More...
Inheritance diagram for ilTinyMCE:
Collaboration diagram for ilTinyMCE:Public Member Functions | |||||||||||||
| __construct ($a_version='') | |||||||||||||
{ilRTE constructor.
| |||||||||||||
| addPlugin ($a_plugin_name) | |||||||||||||
{Adds a plugin to the plugin list.
| |||||||||||||
| removePlugin ($a_plugin_name) | |||||||||||||
{Removes a plugin from the plugin list.
| |||||||||||||
| addRTESupport ($obj_id, $obj_type, $a_module="", $allowFormElements=false, $cfg_template=null, $hide_switch=false) | |||||||||||||
{Adds support for an RTE in an ILIAS form.
| |||||||||||||
| addCustomRTESupport ($obj_id, $obj_type, array $tags) | |||||||||||||
{Adds custom support for an RTE in an ILIAS form.
| |||||||||||||
| addUserTextEditor ($editor_selector) | |||||||||||||
{Adds support for an user text editor.
| |||||||||||||
| getStyleSelect () | |||||||||||||
| Get Enable Style Selecttion. More... | |||||||||||||
| _buildAdvancedBlockformatsFromHTMLTags (array $a_html_tags) | |||||||||||||
| _buildAdvancedButtonsFromHTMLTags ($a_buttons_section, array $a_html_tags) | |||||||||||||
| _buildAdvancedTableButtonsFromHTMLTags (array $a_html_tags) | |||||||||||||
| _getValidElementsFromHTMLTags (array $a_html_tags) | |||||||||||||
| setRemoveImgContextMenuItem ($remove_img_context_menu_item) | |||||||||||||
| getRemoveImgContextMenuItem () | |||||||||||||
Public Member Functions inherited from ilRTE | |||||||||||||
| __construct ($a_version='') | |||||||||||||
| ilRTE constructor. More... | |||||||||||||
| addPlugin ($a_plugin_name) | |||||||||||||
| Adds a plugin to the plugin list. More... | |||||||||||||
| addButton ($a_button_name) | |||||||||||||
| Adds a button to the button list. More... | |||||||||||||
| removePlugin ($a_plugin_name) | |||||||||||||
| Removes a plugin from the plugin list. More... | |||||||||||||
| removeAllPlugins () | |||||||||||||
| Removes all plugins from instance. More... | |||||||||||||
| removeButton ($a_button_name) | |||||||||||||
| Removes a button from the button list. More... | |||||||||||||
| addRTESupport ($obj_id, $obj_type, $a_module="", $allowFormElements=false, $cfg_template=null, $hide_switch=false) | |||||||||||||
| Adds support for an RTE in an ILIAS form. More... | |||||||||||||
| addUserTextEditor ($editor_selector) | |||||||||||||
| Adds support for an user text editor. More... | |||||||||||||
| addCustomRTESupport ($obj_id, $obj_type, array $tags) | |||||||||||||
| Adds custom support for an RTE in an ILIAS form. More... | |||||||||||||
| setRTERootBlockElement ($a_root_block_element) | |||||||||||||
| Setter for the RTE root block element. More... | |||||||||||||
| getRTERootBlockElement () | |||||||||||||
| Getter for the RTE root block element. More... | |||||||||||||
| disableButtons ($a_button) | |||||||||||||
| Sets buttons which should be disabled in the RTE. More... | |||||||||||||
| getDisabledButtons ($as_array=true) | |||||||||||||
| Returns the disabled RTE buttons. More... | |||||||||||||
| getInitialWidth () | |||||||||||||
| setInitialWidth ($initialWidth) | |||||||||||||
Static Public Member Functions | |
| static | removeRedundantSeparators ($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 ($a_text, $a_usage_type, $a_usage_id) |
| Synchronises appearances of media objects in $a_text with media object usage table. More... | |
| static | _replaceMediaObjectImageSrc ($a_text, $a_direction=0, $nic=IL_INST_ID) |
| Replaces image source from mob image urls with the mob id or replaces mob id with the correct image source. More... | |
| static | _getMediaObjects ($a_text, $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 ($a_styleselect) | |
| Set Enable Style Selecttion. More... | |
| _buildButtonsFromHTMLTags (array $a_html_tags) | |
| _getEditorLanguage () | |
Protected Attributes | |
| $mode = 'textareas' | |
| $version = '' | |
| $vd = '' | |
| $styleselect = false | |
| $remove_img_context_menu_item = false | |
Protected Attributes inherited from ilRTE | |
| $plugins = array() | |
| $buttons = array() | |
| $tpl | |
| $ctrl | |
| $user | |
| $lng | |
| $browser | |
| $client_init | |
| $initialWidth = null | |
| $root_block_element = null | |
| $disabled_buttons = array() | |
Additional Inherited Members | |
Data Fields inherited from ilRTE | |
| const | ILIAS_IMG_MANAGER_PLUGIN = 'ilias_image_manager_plugin' |
Tiny MCE editor class.
This class provides access methods for Tiny MCE
Definition at line 15 of file class.ilTinyMCE.php.
| ilTinyMCE::__construct | ( | $a_version = '' | ) |
{ilRTE constructor.
| string | $a_version |
Reimplemented from ilRTE.
Definition at line 35 of file class.ilTinyMCE.php.
References addInternalTinyMCEImageManager(), setStyleSelect(), and vd().
Here is the call graph for this function:| ilTinyMCE::_buildAdvancedBlockformatsFromHTMLTags | ( | array | $a_html_tags | ) |
| array | $a_html_tags |
Definition at line 352 of file class.ilTinyMCE.php.
Referenced by _buildAdvancedButtonsFromHTMLTags(), _buildButtonsFromHTMLTags(), addCustomRTESupport(), and addRTESupport().
Here is the caller graph for this function:| ilTinyMCE::_buildAdvancedButtonsFromHTMLTags | ( | $a_buttons_section, | |
| array | $a_html_tags | ||
| ) |
| int | $a_buttons_section | |
| array | $a_html_tags |
Definition at line 398 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 | ) |
| array | $a_html_tags |
Definition at line 613 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 |
| array | $a_html_tags |
Definition at line 523 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 632 of file class.ilTinyMCE.php.
References $lang, user(), and vd().
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 | ) |
| array | $a_html_tags |
Definition at line 646 of file class.ilTinyMCE.php.
References $tag.
Referenced by addCustomRTESupport(), addRTESupport(), and addUserTextEditor().
Here is the caller graph for this function:| ilTinyMCE::addCustomRTESupport | ( | $obj_id, | |
| $obj_type, | |||
| array | $tags | ||
| ) |
{Adds custom support for an RTE in an ILIAS form.
| $obj_id | integer |
| $obj_type | string |
| $tags | array |
Reimplemented from ilRTE.
Definition at line 242 of file class.ilTinyMCE.php.
References $_COOKIE, ilRTE\$tpl, _buildAdvancedBlockformatsFromHTMLTags(), _buildAdvancedButtonsFromHTMLTags(), _buildAdvancedTableButtonsFromHTMLTags(), _getEditorLanguage(), _getValidElementsFromHTMLTags(), ilRTE\disableButtons(), ilUtil\getNewContentStyleSheetLocation(), ilRTE\getRTERootBlockElement(), getStyleSelect(), handleImagePluginsBeforeRendering(), handleImgContextMenuItem(), and vd().
Here is the call graph for this function:
|
protected |
Definition at line 85 of file class.ilTinyMCE.php.
References League\Flysystem\Plugin\addPlugin(), 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 | ( | $a_plugin_name | ) |
{Adds a plugin to the plugin list.
| string | $a_plugin_name | The name of the plugin |
Reimplemented from ilRTE.
Definition at line 148 of file class.ilTinyMCE.php.
References League\Flysystem\Plugin\addPlugin(), and handleIliasImageManagerAdded().
Here is the call graph for this function:| ilTinyMCE::addRTESupport | ( | $obj_id, | |
| $obj_type, | |||
$a_module = "", |
|||
$allowFormElements = false, |
|||
$cfg_template = null, |
|||
$hide_switch = false |
|||
| ) |
{Adds support for an RTE in an ILIAS form.
| $obj_id | integer |
| $obj_type | string |
| $a_module | string |
| $allowFormElements | bool |
| $cfg_template | bool |
| $hide_switch | bool |
Reimplemented from ilRTE.
Definition at line 172 of file class.ilTinyMCE.php.
References $_COOKIE, $tags, ilRTE\$tpl, _buildAdvancedBlockformatsFromHTMLTags(), _buildAdvancedButtonsFromHTMLTags(), _buildAdvancedTableButtonsFromHTMLTags(), _getEditorLanguage(), ilObjAdvancedEditing\_getRichTextEditor(), ilObjAdvancedEditing\_getRichTextEditorUserState(), ilObjAdvancedEditing\_getUsedHTMLTags(), _getValidElementsFromHTMLTags(), ilObjAdvancedEditing\_setRichTextEditorUserState(), ilRTE\getInitialWidth(), ilUtil\getNewContentStyleSheetLocation(), ilRTE\getRTERootBlockElement(), getStyleSelect(), ilUtil\getStyleSheetLocation(), handleImagePluginsBeforeRendering(), handleImgContextMenuItem(), and vd().
Here is the call graph for this function:| ilTinyMCE::addUserTextEditor | ( | $editor_selector | ) |
{Adds support for an user text editor.
| $editor_selector | string |
Reimplemented from ilRTE.
Definition at line 285 of file class.ilTinyMCE.php.
References $template, _getEditorLanguage(), _getValidElementsFromHTMLTags(), getButtonsForUserTextEditor(), ilUtil\getNewContentStyleSheetLocation(), getStyleSelect(), ilUtil\getStyleSheetLocation(), handleImgContextMenuItem(), and vd().
Here is the call graph for this function:
|
protected |
| array | $buttontags |
Definition at line 316 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::getRemoveImgContextMenuItem | ( | ) |
Definition at line 1136 of file class.ilTinyMCE.php.
References $remove_img_context_menu_item.
Referenced by handleImgContextMenuItem().
Here is the caller graph for this function:| ilTinyMCE::getStyleSelect | ( | ) |
Get Enable Style Selecttion.
Definition at line 343 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 129 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 134 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 |
| array | $tags |
Definition at line 111 of file class.ilTinyMCE.php.
References $tags, 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 |
| ilTemplate | $tpl |
Definition at line 232 of file class.ilTinyMCE.php.
References ilRTE\$tpl, ilTemplate\blockExists(), and getRemoveImgContextMenuItem().
Referenced by addCustomRTESupport(), addRTESupport(), and addUserTextEditor().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTinyMCE::removePlugin | ( | $a_plugin_name | ) |
{Removes a plugin from the plugin list.
| string | $a_plugin_name | The name of the plugin |
Reimplemented from ilRTE.
Definition at line 160 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 1104 of file class.ilTinyMCE.php.
Referenced by ilSurveyPageGUI\renderPage().
Here is the caller graph for this function:| ilTinyMCE::setRemoveImgContextMenuItem | ( | $remove_img_context_menu_item | ) |
| boolean | $remove_img_context_menu_item |
Definition at line 1128 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 |
Set Enable Style Selecttion.
boolean $a_styleselect Enable Style Selecttion
Definition at line 333 of file class.ilTinyMCE.php.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Definition at line 17 of file class.ilTinyMCE.php.
|
protected |
Definition at line 30 of file class.ilTinyMCE.php.
Referenced by getRemoveImgContextMenuItem(), and setRemoveImgContextMenuItem().
|
protected |
Definition at line 24 of file class.ilTinyMCE.php.
Referenced by getStyleSelect().
|
protected |
Definition at line 19 of file class.ilTinyMCE.php.
|
protected |
Definition at line 18 of file class.ilTinyMCE.php.