|
ILIAS
eassessment Revision 61809
|
Class ilTinyMCE functions for the integration of the tinyMCE javascript editor component. More...
Inheritance diagram for ilTinyMCE:
Collaboration diagram for ilTinyMCE:Public Member Functions | |
| ilTinyMCE () | |
| _buildAdvancedBlockformatsFromHTMLTags ($a_html_tags) | |
| _buildAdvancedButtonsFromHTMLTags ($a_html_tags) | |
| _getEditorLanguage () | |
| _getValidElementsFromHTMLTags ($a_html_tags) | |
| ilTinyMCE () | |
| addRTESupport ($obj_id, $obj_type, $a_module="", $allowFormElements=FALSE, $cfg_template=null) | |
| 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. | |
Public Member Functions inherited from ilRTE | |
| ilRTE () | |
| addPlugin ($a_plugin_name) | |
| Adds a plugin to the plugin list. | |
| addButton ($a_button_name) | |
| Adds a button to the button list. | |
| removePlugin ($a_plugin_name) | |
| Removes a plugin from the plugin list. | |
| removeButton ($a_button_name) | |
| Removes a button from the button list. | |
| addRTESupport () | |
| Adds support for an RTE in an ILIAS form. | |
| _getRTEClassname () | |
| _cleanupMediaObjectUsage ($a_text, $a_usage_type, $a_usage_id) | |
| synchronises appearances of media objects in $a_text with media object usage table | |
| _replaceMediaObjectImageSrc ($a_text, $a_direction=0) | |
| replaces image source from mob image urls with the mob id or replaces mob id with the correct image source | |
| _getMediaObjects ($a_text, $a_direction=0) | |
| Returns all media objects found in the passed string. | |
| setRTERootBlockElement () | |
| disableButtons () | |
| getDisabledButtons () | |
Static Public Member Functions | |
| static | _removeRedundantSeparators ($a_string) |
| Removes redundant seperators and removes ,, and , at the first or last position of the string. | |
Protected Attributes | |
| $root_block_element = null | |
| $disabled_buttons = array() | |
Additional Inherited Members | |
Data Fields inherited from ilRTE | |
| $plugins | |
| $buttons | |
| $tpl | |
| $ctrl | |
| $lng | |
Class ilTinyMCE functions for the integration of the tinyMCE javascript editor component.
Tiny MCE editor class.
This class provides access methods for Tiny MCE
class.ilTinyMCE.php
Definition at line 14 of file class.ilTinyMCE.php.
| ilTinyMCE::_buildAdvancedBlockformatsFromHTMLTags | ( | $a_html_tags | ) |
Definition at line 21 of file class.ilTinyMCE.php.
Referenced by _buildAdvancedButtonsFromHTMLTags(), _buildButtonsFromHTMLTags(), addCustomRTESupport(), and addRTESupport().
Here is the caller graph for this function:| ilTinyMCE::_buildAdvancedBlockformatsFromHTMLTags | ( | $a_html_tags | ) |
Definition at line 307 of file class.ilTinyMCE.php.
| ilTinyMCE::_buildAdvancedButtonsFromHTMLTags | ( | $a_html_tags | ) |
Definition at line 75 of file class.ilTinyMCE.php.
References _buildAdvancedBlockformatsFromHTMLTags().
Referenced by addCustomRTESupport(), and addRTESupport().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTinyMCE::_buildAdvancedButtonsFromHTMLTags | ( | $a_buttons_section, | |
| $a_html_tags | |||
| ) |
Definition at line 361 of file class.ilTinyMCE.php.
References $res, _buildAdvancedBlockformatsFromHTMLTags(), and ilRTE\getDisabledButtons().
Here is the call graph for this function:| ilTinyMCE::_buildAdvancedTableButtonsFromHTMLTags | ( | $a_html_tags | ) |
Definition at line 616 of file class.ilTinyMCE.php.
References $res, and ilRTE\getDisabledButtons().
Here is the call graph for this function:| ilTinyMCE::_buildButtonsFromHTMLTags | ( | $a_html_tags | ) |
Definition at line 508 of file class.ilTinyMCE.php.
References $res, _buildAdvancedBlockformatsFromHTMLTags(), and ilRTE\getDisabledButtons().
Referenced by addUserTextEditor().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTinyMCE::_getEditorLanguage | ( | ) |
Definition at line 171 of file class.ilTinyMCE.php.
References $lang.
Referenced by addCustomRTESupport(), addRTESupport(), and addUserTextEditor().
Here is the caller graph for this function:| ilTinyMCE::_getEditorLanguage | ( | ) |
Definition at line 639 of file class.ilTinyMCE.php.
References $lang.
| ilTinyMCE::_getValidElementsFromHTMLTags | ( | $a_html_tags | ) |
Definition at line 185 of file class.ilTinyMCE.php.
Referenced by addCustomRTESupport(), addRTESupport(), and addUserTextEditor().
Here is the caller graph for this function:| ilTinyMCE::_getValidElementsFromHTMLTags | ( | $a_html_tags | ) |
Definition at line 653 of file class.ilTinyMCE.php.
|
static |
Removes redundant seperators and removes ,, and , at the first or last position of the string.
| string | $a_string | A string |
Definition at line 1183 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 212 of file class.ilTinyMCE.php.
References $_COOKIE, ilRTE\$tpl, _buildAdvancedBlockformatsFromHTMLTags(), _buildAdvancedButtonsFromHTMLTags(), _getEditorLanguage(), _getValidElementsFromHTMLTags(), ilRTE\disableButtons(), ilUtil\getNewContentStyleSheetLocation(), getRTERootBlockElement(), and getStyleSelect().
Here is the call graph for this function:| ilTinyMCE::addRTESupport | ( | $obj_id, | |
| $obj_type, | |||
$a_module = "", |
|||
$allowFormElements = FALSE, |
|||
$cfg_template = null |
|||
| ) |
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 136 of file class.ilTinyMCE.php.
References $_COOKIE, $_POST, ilRTE\$tpl, _buildAdvancedBlockformatsFromHTMLTags(), _buildAdvancedButtonsFromHTMLTags(), _getEditorLanguage(), ilObjAdvancedEditing\_getRichTextEditor(), ilObjAdvancedEditing\_getRichTextEditorUserState(), ilObjAdvancedEditing\_getUsedHTMLTags(), _getValidElementsFromHTMLTags(), ilObjAdvancedEditing\_setRichTextEditorUserState(), ilUtil\getNewContentStyleSheetLocation(), getRTERootBlockElement(), getStyleSelect(), and ilUtil\getStyleSheetLocation().
Here is the call graph for this function:| 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 259 of file class.ilTinyMCE.php.
References _buildButtonsFromHTMLTags(), _getEditorLanguage(), _getValidElementsFromHTMLTags(), ilUtil\getNewContentStyleSheetLocation(), getStyleSelect(), and ilUtil\getStyleSheetLocation().
Here is the call graph for this function:| 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 1140 of file class.ilTinyMCE.php.
| 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 1162 of file class.ilTinyMCE.php.
References $disabled_buttons.
| ilTinyMCE::getRTERootBlockElement | ( | ) |
Getter for the TinyMCE root block element.
Reimplemented from ilRTE.
Definition at line 1127 of file class.ilTinyMCE.php.
References $root_block_element.
Referenced by addCustomRTESupport(), and addRTESupport().
Here is the caller graph for this function:| ilTinyMCE::getStyleSelect | ( | ) |
Get Enable Style Selecttion.
Definition at line 301 of file class.ilTinyMCE.php.
Referenced by addCustomRTESupport(), addRTESupport(), and addUserTextEditor().
Here is the caller graph for this function:| ilTinyMCE::ilTinyMCE | ( | ) |
Definition at line 16 of file class.ilTinyMCE.php.
| ilTinyMCE::ilTinyMCE | ( | ) |
Definition at line 37 of file class.ilTinyMCE.php.
References ilRTE\ilRTE(), and setStyleSelect().
Here is the call graph for this function:| ilTinyMCE::setRTERootBlockElement | ( | $a_root_block_element | ) |
Setter for the TinyMCE root block element.
| string | $a_root_block_element | root block element |
Definition at line 1115 of file class.ilTinyMCE.php.
| ilTinyMCE::setStyleSelect | ( | $a_styleselect | ) |
Set Enable Style Selecttion.
| boolean | $a_styleselect | Enable Style Selecttion |
Definition at line 291 of file class.ilTinyMCE.php.
Referenced by ilTinyMCE().
Here is the caller graph for this function:
|
protected |
Definition at line 85 of file class.ilTinyMCE.php.
Referenced by getDisabledButtons().
|
protected |
Definition at line 75 of file class.ilTinyMCE.php.
Referenced by getRTERootBlockElement().