ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Tiny MCE editor class. More...
Public Member Functions | |
__construct ($a_version='') | |
{} More... | |
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... | |
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 () | |
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 = '' | ) |
{}
Definition at line 35 of file class.ilTinyMCE.php.
References addInternalTinyMCEImageManager(), setStyleSelect(), and vd().
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().
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().
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().
|
protected |
array | $a_html_tags |
Definition at line 523 of file class.ilTinyMCE.php.
References $res, _buildAdvancedBlockformatsFromHTMLTags(), and ilRTE\getDisabledButtons().
Referenced by getButtonsForUserTextEditor().
|
protected |
Definition at line 632 of file class.ilTinyMCE.php.
References $lang, user(), and vd().
Referenced by addCustomRTESupport(), addRTESupport(), and addUserTextEditor().
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().
ilTinyMCE::addCustomRTESupport | ( | $obj_id, | |
$obj_type, | |||
array | $tags | ||
) |
{}
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().
|
protected |
Definition at line 85 of file class.ilTinyMCE.php.
References League\Flysystem\Plugin\addPlugin(), ilRTE\disableButtons(), and setRemoveImgContextMenuItem().
Referenced by __construct(), and handleIliasImageManagerAdded().
ilTinyMCE::addPlugin | ( | $a_plugin_name | ) |
{}
Definition at line 148 of file class.ilTinyMCE.php.
References League\Flysystem\Plugin\addPlugin(), and handleIliasImageManagerAdded().
ilTinyMCE::addRTESupport | ( | $obj_id, | |
$obj_type, | |||
$a_module = "" , |
|||
$allowFormElements = false , |
|||
$cfg_template = null , |
|||
$hide_switch = false |
|||
) |
{}
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().
ilTinyMCE::addUserTextEditor | ( | $editor_selector | ) |
{}
Definition at line 285 of file class.ilTinyMCE.php.
References $template, _getEditorLanguage(), _getValidElementsFromHTMLTags(), getButtonsForUserTextEditor(), ilUtil\getNewContentStyleSheetLocation(), getStyleSelect(), ilUtil\getStyleSheetLocation(), handleImgContextMenuItem(), and vd().
|
protected |
array | $buttontags |
Definition at line 316 of file class.ilTinyMCE.php.
References _buildButtonsFromHTMLTags().
Referenced by addUserTextEditor().
ilTinyMCE::getRemoveImgContextMenuItem | ( | ) |
Definition at line 1136 of file class.ilTinyMCE.php.
References $remove_img_context_menu_item.
Referenced by handleImgContextMenuItem().
ilTinyMCE::getStyleSelect | ( | ) |
Get Enable Style Selecttion.
Definition at line 343 of file class.ilTinyMCE.php.
References $styleselect.
Referenced by addCustomRTESupport(), addRTESupport(), and addUserTextEditor().
|
protected |
Definition at line 129 of file class.ilTinyMCE.php.
References addInternalTinyMCEImageManager().
Referenced by addPlugin().
|
protected |
Definition at line 134 of file class.ilTinyMCE.php.
References ilRTE\disableButtons().
Referenced by removePlugin().
|
protected |
array | $tags |
Definition at line 111 of file class.ilTinyMCE.php.
References ilRTE\disableButtons(), and setRemoveImgContextMenuItem().
Referenced by addCustomRTESupport(), and addRTESupport().
|
protected |
ilTemplate | $tpl |
Definition at line 232 of file class.ilTinyMCE.php.
References ilTemplate\blockExists(), getRemoveImgContextMenuItem(), and ilTemplate\touchBlock().
Referenced by addCustomRTESupport(), addRTESupport(), and addUserTextEditor().
ilTinyMCE::removePlugin | ( | $a_plugin_name | ) |
{}
Definition at line 160 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 1104 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 1128 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 333 of file class.ilTinyMCE.php.
Referenced by __construct().
|
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.