ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Tiny MCE editor class. More...
Public Member Functions | |
__construct ($a_version='') | |
{} More... | |
getPlugins () | |
addPlugin ($a_plugin_name) | |
{} More... | |
removePlugin ($a_plugin_name) | |
{} More... | |
addRTESupport ($obj_id, $obj_type, $a_module="", $allowFormElements=false, $cfg_template=null, $hide_switch=false) | |
{} More... | |
addContextmenuItem (string $item="") | |
addContextmenuItem More... | |
removeAllContextMenuItems () | |
removeAllContextMenuItems More... | |
addCustomRTESupport ($obj_id, $obj_type, array $tags) | |
{} More... | |
addUserTextEditor ($editor_selector) | |
{} More... | |
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 () | |
![]() | |
__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 | _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 = '' | |
$styleselect = false | |
$remove_img_context_menu_item = false | |
![]() | |
$plugins = array() | |
$buttons = array() | |
$tpl | |
$ctrl | |
$user | |
$lng | |
$browser | |
$client_init | |
$initialWidth = null | |
$root_block_element = null | |
$disabled_buttons = array() | |
Static Protected Attributes | |
static | $renderedToGlobalTemplate = false |
Additional Inherited Members | |
![]() | |
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 = '' | ) |
{}
Definition at line 36 of file class.ilTinyMCE.php.
References ILIAS\GlobalScreen\Provider\__construct(), addInternalTinyMCEImageManager(), and setStyleSelect().
ilTinyMCE::_buildAdvancedBlockformatsFromHTMLTags | ( | array | $a_html_tags | ) |
array | $a_html_tags |
Definition at line 388 of file class.ilTinyMCE.php.
Referenced by _buildAdvancedButtonsFromHTMLTags(), _buildButtonsFromHTMLTags(), addCustomRTESupport(), and addRTESupport().
ilTinyMCE::_buildAdvancedButtonsFromHTMLTags | ( | $a_buttons_section, | |
array | $a_html_tags | ||
) |
int | $a_buttons_section | |
array | $a_html_tags |
Definition at line 434 of file class.ilTinyMCE.php.
References $res, _buildAdvancedBlockformatsFromHTMLTags(), and ilRTE\getDisabledButtons().
Referenced by addCustomRTESupport(), and addRTESupport().
ilTinyMCE::_buildAdvancedTableButtonsFromHTMLTags | ( | array | $a_html_tags | ) |
array | $a_html_tags |
Definition at line 649 of file class.ilTinyMCE.php.
References $res, and ilRTE\getDisabledButtons().
Referenced by addCustomRTESupport(), and addRTESupport().
|
protected |
array | $a_html_tags |
Definition at line 559 of file class.ilTinyMCE.php.
References $res, _buildAdvancedBlockformatsFromHTMLTags(), and ilRTE\getDisabledButtons().
Referenced by getButtonsForUserTextEditor().
|
protected |
Definition at line 668 of file class.ilTinyMCE.php.
Referenced by addCustomRTESupport(), addRTESupport(), and addUserTextEditor().
ilTinyMCE::_getValidElementsFromHTMLTags | ( | array | $a_html_tags | ) |
array | $a_html_tags |
Definition at line 698 of file class.ilTinyMCE.php.
Referenced by addCustomRTESupport(), addRTESupport(), and addUserTextEditor().
ilTinyMCE::addContextmenuItem | ( | string | $item = "" | ) |
addContextmenuItem
mixed | $item |
Definition at line 252 of file class.ilTinyMCE.php.
ilTinyMCE::addCustomRTESupport | ( | $obj_id, | |
$obj_type, | |||
array | $tags | ||
) |
{}
Definition at line 272 of file class.ilTinyMCE.php.
References $_COOKIE, ilRTE\$tpl, _buildAdvancedBlockformatsFromHTMLTags(), _buildAdvancedButtonsFromHTMLTags(), _buildAdvancedTableButtonsFromHTMLTags(), _getEditorLanguage(), _getValidElementsFromHTMLTags(), CLIENT_ID, ilRTE\disableButtons(), ilUtil\getFileSizeInfo(), ilUtil\getNewContentStyleSheetLocation(), ilRTE\getRTERootBlockElement(), getStyleSelect(), handleImagePluginsBeforeRendering(), and handleImgContextMenuItem().
|
protected |
Definition at line 75 of file class.ilTinyMCE.php.
References ilRTE\disableButtons(), and setRemoveImgContextMenuItem().
Referenced by __construct(), and handleIliasImageManagerAdded().
ilTinyMCE::addPlugin | ( | $a_plugin_name | ) |
{}
Definition at line 138 of file class.ilTinyMCE.php.
References handleIliasImageManagerAdded().
ilTinyMCE::addRTESupport | ( | $obj_id, | |
$obj_type, | |||
$a_module = "" , |
|||
$allowFormElements = false , |
|||
$cfg_template = null , |
|||
$hide_switch = false |
|||
) |
{}
Definition at line 162 of file class.ilTinyMCE.php.
References $_COOKIE, $DIC, ilRTE\$lng, $tinyMCE_valid_imgs, ilRTE\$tpl, _buildAdvancedBlockformatsFromHTMLTags(), _buildAdvancedButtonsFromHTMLTags(), _buildAdvancedTableButtonsFromHTMLTags(), _getEditorLanguage(), ilObjAdvancedEditing\_getRichTextEditor(), ilObjAdvancedEditing\_getRichTextEditorUserState(), ilObjAdvancedEditing\_getUsedHTMLTags(), _getValidElementsFromHTMLTags(), ilObjAdvancedEditing\_setRichTextEditorUserState(), CLIENT_ID, ilUtil\getFileSizeInfo(), ilRTE\getInitialWidth(), ilUtil\getNewContentStyleSheetLocation(), ilRTE\getRTERootBlockElement(), getStyleSelect(), ilUtil\getStyleSheetLocation(), handleImagePluginsBeforeRendering(), and handleImgContextMenuItem().
ilTinyMCE::addUserTextEditor | ( | $editor_selector | ) |
{}
Definition at line 322 of file class.ilTinyMCE.php.
References _getEditorLanguage(), _getValidElementsFromHTMLTags(), getButtonsForUserTextEditor(), ilUtil\getNewContentStyleSheetLocation(), getStyleSelect(), ilUtil\getStyleSheetLocation(), and handleImgContextMenuItem().
|
protected |
array | $buttontags |
Definition at line 352 of file class.ilTinyMCE.php.
References _buildButtonsFromHTMLTags().
Referenced by addUserTextEditor().
ilTinyMCE::getPlugins | ( | ) |
Definition at line 67 of file class.ilTinyMCE.php.
References ilRTE\$plugins.
ilTinyMCE::getRemoveImgContextMenuItem | ( | ) |
Definition at line 1203 of file class.ilTinyMCE.php.
References $remove_img_context_menu_item.
Referenced by handleImgContextMenuItem().
ilTinyMCE::getStyleSelect | ( | ) |
Get Enable Style Selecttion.
Definition at line 379 of file class.ilTinyMCE.php.
References $styleselect.
Referenced by addCustomRTESupport(), addRTESupport(), and addUserTextEditor().
|
protected |
Definition at line 119 of file class.ilTinyMCE.php.
References addInternalTinyMCEImageManager().
Referenced by addPlugin().
|
protected |
Definition at line 124 of file class.ilTinyMCE.php.
References ilRTE\disableButtons().
Referenced by removePlugin().
|
protected |
array | $tags |
Definition at line 101 of file class.ilTinyMCE.php.
References ilRTE\disableButtons(), and setRemoveImgContextMenuItem().
Referenced by addCustomRTESupport(), and addRTESupport().
|
protected |
ilTemplate | $tpl |
Definition at line 239 of file class.ilTinyMCE.php.
References ilTemplate\blockExists(), getRemoveImgContextMenuItem(), and ilTemplate\touchBlock().
Referenced by addCustomRTESupport(), addRTESupport(), and addUserTextEditor().
ilTinyMCE::removeAllContextMenuItems | ( | ) |
ilTinyMCE::removePlugin | ( | $a_plugin_name | ) |
{}
Definition at line 150 of file class.ilTinyMCE.php.
References handleIliasImageManagerRemoved().
|
static |
Removes redundant seperators and removes ,, and , at the first or last position of the string.
string | $a_string | A string |
Definition at line 1156 of file class.ilTinyMCE.php.
Referenced by ilSurveyPageGUI\renderPage().
ilTinyMCE::setRemoveImgContextMenuItem | ( | $remove_img_context_menu_item | ) |
boolean | $remove_img_context_menu_item |
Definition at line 1195 of file class.ilTinyMCE.php.
References $remove_img_context_menu_item.
Referenced by addInternalTinyMCEImageManager(), and handleImagePluginsBeforeRendering().
|
protected |
Set Enable Style Selecttion.
boolean $a_styleselect Enable Style Selecttion
Definition at line 369 of file class.ilTinyMCE.php.
Referenced by __construct().
|
protected |
Definition at line 17 of file class.ilTinyMCE.php.
|
protected |
Definition at line 31 of file class.ilTinyMCE.php.
Referenced by getRemoveImgContextMenuItem(), and setRemoveImgContextMenuItem().
|
staticprotected |
Definition at line 20 of file class.ilTinyMCE.php.
|
protected |
Definition at line 25 of file class.ilTinyMCE.php.
Referenced by getStyleSelect().
|
protected |
Definition at line 18 of file class.ilTinyMCE.php.