ILIAS
Release_5_0_x_branch Revision 61816
|
Tiny MCE editor class. More...
Public Member Functions | |
ilTinyMCE ($a_version="") | |
addPlugin ($a_plugin_name) | |
removePlugin ($a_plugin_name) | |
addRTESupport ($obj_id, $obj_type, $a_module="", $allowFormElements=FALSE, $cfg_template=null, $hide_switch=false) | |
Returns the path to the content css file for the editor. | |
addCustomRTESupport ($obj_id, $obj_type, $tags) | |
Adds custom support for an RTE in an ILIAS form. | |
addUserTextEditor ($editor_selector) | |
Adds custom support for an RTE in an ILIAS form. | |
setStyleSelect ($a_styleselect) | |
Set Enable Style Selecttion. | |
getStyleSelect () | |
Get Enable Style Selecttion. | |
_buildAdvancedBlockformatsFromHTMLTags ($a_html_tags) | |
_buildAdvancedButtonsFromHTMLTags ($a_buttons_section, $a_html_tags) | |
_buildButtonsFromHTMLTags ($a_html_tags) | |
_buildAdvancedTableButtonsFromHTMLTags ($a_html_tags) | |
_getEditorLanguage () | |
_getValidElementsFromHTMLTags ($a_html_tags) | |
setRTERootBlockElement ($a_root_block_element) | |
Setter for the TinyMCE root block element. | |
getRTERootBlockElement () | |
Getter for the TinyMCE root block element. | |
disableButtons ($a_button) | |
Sets buttons which should be disabled in TinyMCE. | |
getDisabledButtons ($as_array=true) | |
Returns the disabled TinyMCE buttons. | |
setRemoveImgContextMenuItem ($remove_img_context_menu_item) | |
getRemoveImgContextMenuItem () | |
Public Member Functions inherited from ilRTE | |
ilRTE ($a_version="") | |
addButton ($a_button_name) | |
Adds a button to the button list. | |
removeAllPlugins () | |
removeButton ($a_button_name) | |
Removes a button from the button list. | |
addRTESupport () | |
Adds support for an RTE in an ILIAS form. | |
_cleanupMediaObjectUsage ($a_text, $a_usage_type, $a_usage_id) | |
synchronises appearances of media objects in $a_text with media object usage table | |
setRTERootBlockElement () | |
disableButtons () | |
getDisabledButtons () | |
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. | |
Static Public Member Functions inherited from ilRTE | |
static | _getRTEClassname () |
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 | |
static | _getMediaObjects ($a_text, $a_direction=0) |
Returns all media objects found in the passed string. |
Protected Member Functions | |
handleIliasImageManagerAdded () | |
handleImgContextMenuItem ($tpl) | |
getButtonsForUserTextEditor ($buttontags) |
Protected Attributes | |
$mode = "textareas" | |
$version = "" | |
$vd = "" | |
$remove_img_context_menu_item = false | |
$root_block_element = null | |
$disabled_buttons = array() | |
Protected Attributes inherited from ilRTE | |
$initialWidth = null |
Private Member Functions | |
handleImagePluginsBeforeRendering (array $tags) |
Additional Inherited Members | |
Data Fields inherited from ilRTE | |
const | ILIAS_IMG_MANAGER_PLUGIN = 'ilias_image_manager_plugin' |
$plugins | |
$buttons | |
$tpl | |
$ctrl | |
$lng |
Tiny MCE editor class.
This class provides access methods for Tiny MCE
Definition at line 35 of file class.ilTinyMCE.php.
ilTinyMCE::_buildAdvancedBlockformatsFromHTMLTags | ( | $a_html_tags | ) |
Definition at line 494 of file class.ilTinyMCE.php.
Referenced by _buildAdvancedButtonsFromHTMLTags(), _buildButtonsFromHTMLTags(), addCustomRTESupport(), and addRTESupport().
ilTinyMCE::_buildAdvancedButtonsFromHTMLTags | ( | $a_buttons_section, | |
$a_html_tags | |||
) |
Definition at line 548 of file class.ilTinyMCE.php.
References $res, _buildAdvancedBlockformatsFromHTMLTags(), and ilRTE\getDisabledButtons().
Referenced by addCustomRTESupport(), and addRTESupport().
ilTinyMCE::_buildAdvancedTableButtonsFromHTMLTags | ( | $a_html_tags | ) |
Definition at line 809 of file class.ilTinyMCE.php.
References $res, and ilRTE\getDisabledButtons().
ilTinyMCE::_buildButtonsFromHTMLTags | ( | $a_html_tags | ) |
Definition at line 700 of file class.ilTinyMCE.php.
References $res, _buildAdvancedBlockformatsFromHTMLTags(), and ilRTE\getDisabledButtons().
Referenced by getButtonsForUserTextEditor().
ilTinyMCE::_getEditorLanguage | ( | ) |
Definition at line 832 of file class.ilTinyMCE.php.
References $ilUser, $lang, and vd().
Referenced by addCustomRTESupport(), addRTESupport(), and addUserTextEditor().
ilTinyMCE::_getValidElementsFromHTMLTags | ( | $a_html_tags | ) |
Definition at line 846 of file class.ilTinyMCE.php.
Referenced by addCustomRTESupport(), addRTESupport(), and addUserTextEditor().
|
static |
Removes redundant seperators and removes ,, and , at the first or last position of the string.
string | $a_string | A string |
Definition at line 1376 of file class.ilTinyMCE.php.
ilTinyMCE::addCustomRTESupport | ( | $obj_id, | |
$obj_type, | |||
$tags | |||
) |
Adds custom support for an RTE in an ILIAS form.
Adds custom support for an RTE in an ILIAS form
public
Reimplemented from ilRTE.
Definition at line 384 of file class.ilTinyMCE.php.
References $_COOKIE, ilRTE\$tpl, _buildAdvancedBlockformatsFromHTMLTags(), _buildAdvancedButtonsFromHTMLTags(), _getEditorLanguage(), _getValidElementsFromHTMLTags(), ilRTE\disableButtons(), ilUtil\getNewContentStyleSheetLocation(), getRTERootBlockElement(), getStyleSelect(), handleImagePluginsBeforeRendering(), handleImgContextMenuItem(), and vd().
ilTinyMCE::addPlugin | ( | $a_plugin_name | ) |
string | $a_plugin_name |
Reimplemented from ilRTE.
Definition at line 181 of file class.ilTinyMCE.php.
References handleIliasImageManagerAdded().
ilTinyMCE::addRTESupport | ( | $obj_id, | |
$obj_type, | |||
$a_module = "" , |
|||
$allowFormElements = FALSE , |
|||
$cfg_template = null , |
|||
$hide_switch = false |
|||
) |
Returns the path to the content css file for the editor.
Returns the path to the content css file for the editor
Adds support for an RTE in an ILIAS form
string | $a_module | Module or object which should use the HTML tags public |
Definition at line 277 of file class.ilTinyMCE.php.
References $_COOKIE, ilRTE\$tpl, _buildAdvancedBlockformatsFromHTMLTags(), _buildAdvancedButtonsFromHTMLTags(), _getEditorLanguage(), ilObjAdvancedEditing\_getRichTextEditor(), ilObjAdvancedEditing\_getRichTextEditorUserState(), ilObjAdvancedEditing\_getUsedHTMLTags(), _getValidElementsFromHTMLTags(), ilObjAdvancedEditing\_setRichTextEditorUserState(), ilRTE\getInitialWidth(), ilUtil\getNewContentStyleSheetLocation(), getRTERootBlockElement(), getStyleSelect(), ilUtil\getStyleSheetLocation(), handleImagePluginsBeforeRendering(), handleImgContextMenuItem(), and vd().
ilTinyMCE::addUserTextEditor | ( | $editor_selector | ) |
Adds custom support for an RTE in an ILIAS form.
Adds custom support for an RTE in an ILIAS form
string | $editor_selector | CSS class of the text input field(s) public |
Reimplemented from ilRTE.
Definition at line 433 of file class.ilTinyMCE.php.
References _getEditorLanguage(), _getValidElementsFromHTMLTags(), getButtonsForUserTextEditor(), ilUtil\getNewContentStyleSheetLocation(), getStyleSelect(), ilUtil\getStyleSheetLocation(), handleImgContextMenuItem(), and vd().
ilTinyMCE::disableButtons | ( | $a_button | ) |
Sets buttons which should be disabled in TinyMCE.
mixed | $a_button | Either a button string or an array of button strings |
Definition at line 1333 of file class.ilTinyMCE.php.
|
protected |
Definition at line 461 of file class.ilTinyMCE.php.
References _buildButtonsFromHTMLTags().
Referenced by addUserTextEditor().
ilTinyMCE::getDisabledButtons | ( | $as_array = true | ) |
Returns the disabled TinyMCE buttons.
boolean | $as_array | Should the disabled buttons be returned as a string or as an array |
Definition at line 1355 of file class.ilTinyMCE.php.
References $disabled_buttons.
ilTinyMCE::getRemoveImgContextMenuItem | ( | ) |
Definition at line 1412 of file class.ilTinyMCE.php.
References $remove_img_context_menu_item.
Referenced by handleImgContextMenuItem().
ilTinyMCE::getRTERootBlockElement | ( | ) |
Getter for the TinyMCE root block element.
Reimplemented from ilRTE.
Definition at line 1320 of file class.ilTinyMCE.php.
References $root_block_element.
Referenced by addCustomRTESupport(), and addRTESupport().
ilTinyMCE::getStyleSelect | ( | ) |
Get Enable Style Selecttion.
Definition at line 488 of file class.ilTinyMCE.php.
Referenced by addCustomRTESupport(), addRTESupport(), and addUserTextEditor().
|
protected |
Definition at line 154 of file class.ilTinyMCE.php.
Referenced by addPlugin().
|
private |
array | $tags |
Definition at line 135 of file class.ilTinyMCE.php.
References ilRTE\disableButtons(), removePlugin(), and setRemoveImgContextMenuItem().
Referenced by addCustomRTESupport(), and addRTESupport().
|
protected |
Definition at line 369 of file class.ilTinyMCE.php.
References ilRTE\$tpl, and getRemoveImgContextMenuItem().
Referenced by addCustomRTESupport(), addRTESupport(), and addUserTextEditor().
ilTinyMCE::ilTinyMCE | ( | $a_version = "" | ) |
Definition at line 49 of file class.ilTinyMCE.php.
References ilRTE\ilRTE(), setStyleSelect(), and vd().
ilTinyMCE::removePlugin | ( | $a_plugin_name | ) |
string | $a_plugin_name |
Reimplemented from ilRTE.
Definition at line 196 of file class.ilTinyMCE.php.
Referenced by handleImagePluginsBeforeRendering().
ilTinyMCE::setRemoveImgContextMenuItem | ( | $remove_img_context_menu_item | ) |
boolean | $remove_img_context_menu_item |
Definition at line 1404 of file class.ilTinyMCE.php.
References $remove_img_context_menu_item.
Referenced by handleImagePluginsBeforeRendering().
ilTinyMCE::setRTERootBlockElement | ( | $a_root_block_element | ) |
Setter for the TinyMCE root block element.
string | $a_root_block_element | root block element |
Definition at line 1308 of file class.ilTinyMCE.php.
ilTinyMCE::setStyleSelect | ( | $a_styleselect | ) |
Set Enable Style Selecttion.
boolean | $a_styleselect | Enable Style Selecttion |
Definition at line 478 of file class.ilTinyMCE.php.
Referenced by ilTinyMCE().
|
protected |
Definition at line 225 of file class.ilTinyMCE.php.
Referenced by getDisabledButtons().
|
protected |
Definition at line 37 of file class.ilTinyMCE.php.
|
protected |
Definition at line 46 of file class.ilTinyMCE.php.
Referenced by getRemoveImgContextMenuItem(), and setRemoveImgContextMenuItem().
|
protected |
Definition at line 215 of file class.ilTinyMCE.php.
Referenced by getRTERootBlockElement().
|
protected |
Definition at line 39 of file class.ilTinyMCE.php.
|
protected |
Definition at line 38 of file class.ilTinyMCE.php.