|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Rich Text Editor base class. More...
Inheritance diagram for ilRTE:
Collaboration diagram for ilRTE:Public Member Functions | |
| ilRTE ($a_version="") | |
| 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 () | |
| removeButton ($a_button_name) | |
| Removes a button from the button list. More... | |
| addRTESupport () | |
| 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, $tags) | |
| Adds custom support for an RTE in an ILIAS form. More... | |
| _cleanupMediaObjectUsage ($a_text, $a_usage_type, $a_usage_id) | |
| synchronises appearances of media objects in $a_text with media object usage table More... | |
| setRTERootBlockElement () | |
| getRTERootBlockElement () | |
| disableButtons () | |
| getDisabledButtons () | |
| getInitialWidth () | |
| setInitialWidth ($initialWidth) | |
Static Public Member Functions | |
| 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 More... | |
| static | _getMediaObjects ($a_text, $a_direction=0) |
| Returns all media objects found in the passed string. More... | |
Data Fields | |
| const | ILIAS_IMG_MANAGER_PLUGIN = 'ilias_image_manager_plugin' |
| $plugins | |
| $buttons | |
| $tpl | |
| $ctrl | |
| $lng | |
Protected Attributes | |
| $initialWidth = null | |
Rich Text Editor base class.
This class provides access methods to a Rich Text Editor (RTE) integrated in ILIAS
Definition at line 34 of file class.ilRTE.php.
| ilRTE::_cleanupMediaObjectUsage | ( | $a_text, | |
| $a_usage_type, | |||
| $a_usage_id | |||
| ) |
synchronises appearances of media objects in $a_text with media object usage table
| string | $a_text | text, including media object tags |
| string | $a_usage_type | type of context of usage, e.g. cat:html |
| int | $a_usage_id | if of context of usage, e.g. category id |
Definition at line 193 of file class.ilRTE.php.
References $mobs, ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_removeUsage(), and ilObjMediaObject\_saveUsage().
Referenced by ilObjSurvey\cleanupMediaobjectUsage(), ilObjTest\cleanupMediaobjectUsage(), assQuestion\cleanupMediaObjectUsage(), ilContainerGUI\savePageContentObject(), and SurveyQuestion\saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Returns all media objects found in the passed string.
| string | $a_text | text, including media object tags |
| integer | $a_direction | 0 to find image src, 1 to find mob id |
Definition at line 272 of file class.ilRTE.php.
References ilObjMediaObject\_exists().
Referenced by ilObjPaymentSettingsGUI\saveStatutoryRegulationsObject(), and ilObjExerciseGUI\updateAssignmentTextObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 170 of file class.ilRTE.php.
References ilObjAdvancedEditing\_getRichTextEditor().
Referenced by ilContainerGUI\editPageContentObject(), ilTextAreaInputGUI\insert(), and assTextQuestionGUI\outQuestionForTest().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
replaces image source from mob image urls with the mob id or replaces mob id with the correct image source
| string | $a_text | text, including media object tags |
| integer | $a_direction | 0 to replace image src => mob id, 1 to replace mob id => image src |
Definition at line 236 of file class.ilRTE.php.
References ilObjMediaObject\_exists().
Referenced by ilPurchaseBaseGUI\__sendBill(), SurveyQuestion\addMaterialTag(), ilObjSurvey\addMaterialTag(), ilObjTest\addQTIMaterial(), assQuestion\addQTIMaterial(), ilObjExerciseGUI\editAssignmentTextObject(), ilAssSelfAssessmentQuestionFormatter\format(), assClozeTestImport\fromXML(), assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFlashQuestionImport\fromXML(), assFormulaQuestionImport\fromXML(), assImagemapQuestionImport\fromXML(), assJavaAppletImport\fromXML(), assMatchingQuestionImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assTextQuestionImport\fromXML(), assTextSubsetImport\fromXML(), assKprimChoiceImport\fromXML(), assMultipleChoiceImport\fromXML(), ilObjTest\fromXML(), ilForum\generatePost(), ilAssMultiOptionQuestionFeedback\getAllSpecificAnswerFeedbackContents(), ilAssQuestionFeedback\getGenericFeedbackContent(), ilObjTest\getManualFeedback(), ilAssMultiOptionQuestionFeedback\getSpecificAnswerFeedbackContent(), ilObjSurvey\importObject(), ilSurveyImporter\importXmlRepresentation(), assKprimChoice\loadAnswerData(), SurveyMatrixQuestion\loadFromDb(), SurveyMetricQuestion\loadFromDb(), SurveyMultipleChoiceQuestion\loadFromDb(), SurveySingleChoiceQuestion\loadFromDb(), SurveyTextQuestion\loadFromDb(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), assImagemapQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assMatchingQuestion\loadFromDb(), assMultipleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assQuestion\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), assKprimChoice\loadFromDb(), ilObjSurvey\loadFromDb(), ilObjTest\loadFromDb(), ilExAssignmentListTextTableGUI\parse(), assQuestionImport\processNonAbstractedImageReferences(), assClozeTest\saveAdditionalQuestionDataToDb(), ilAssQuestionFeedback\saveGenericFeedbackContent(), assQuestion\saveQuestionDataToDb(), ilAssMultiOptionQuestionFeedback\saveSpecificAnswerFeedbackContent(), ilObjPaymentSettingsGUI\saveStatutoryRegulationsObject(), SurveyQuestion\saveToDb(), ilObjTest\saveToDb(), ilObjSurvey\saveToDb(), ilObjExerciseGUI\showAssignmentTextObject(), ilShopShoppingCartGUI\showItems(), ilForumXMLWriter\start(), ilObjPaymentSettingsGUI\StatutoryRegulationsObject(), assErrorText\toJSON(), and ilObjExerciseGUI\updateAssignmentTextObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRTE::addButton | ( | $a_button_name | ) |
Adds a button to the button list.
Adds a button to the button list
| string | $a_button_name | The name of the button @access public |
Definition at line 88 of file class.ilRTE.php.
| ilRTE::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
@access public
Reimplemented in ilTinyMCE.
Definition at line 164 of file class.ilRTE.php.
| ilRTE::addPlugin | ( | $a_plugin_name | ) |
Adds a plugin to the plugin list.
Adds a plugin to the plugin list
| string | $a_plugin_name | The name of the plugin @access public |
Reimplemented in ilTinyMCE.
Definition at line 75 of file class.ilRTE.php.
| ilRTE::addRTESupport | ( | ) |
Adds support for an RTE in an ILIAS form.
Adds support for an RTE in an ILIAS form
@access public
Definition at line 142 of file class.ilRTE.php.
| ilRTE::addUserTextEditor | ( | $editor_selector | ) |
Adds support for an user text editor.
@access public
Reimplemented in ilTinyMCE.
Definition at line 152 of file class.ilRTE.php.
| ilRTE::disableButtons | ( | ) |
Definition at line 318 of file class.ilRTE.php.
Referenced by ilTinyMCE\addCustomRTESupport(), and ilTinyMCE\handleImagePluginsBeforeRendering().
Here is the caller graph for this function:| ilRTE::getDisabledButtons | ( | ) |
Definition at line 323 of file class.ilRTE.php.
Referenced by ilTinyMCE\_buildAdvancedButtonsFromHTMLTags(), ilTinyMCE\_buildAdvancedTableButtonsFromHTMLTags(), and ilTinyMCE\_buildButtonsFromHTMLTags().
Here is the caller graph for this function:| ilRTE::getInitialWidth | ( | ) |
Definition at line 331 of file class.ilRTE.php.
References $initialWidth.
Referenced by ilTinyMCE\addRTESupport().
Here is the caller graph for this function:| ilRTE::getRTERootBlockElement | ( | ) |
Reimplemented in ilTinyMCE.
Definition at line 313 of file class.ilRTE.php.
| ilRTE::ilRTE | ( | $a_version = "" | ) |
Definition at line 57 of file class.ilRTE.php.
| ilRTE::removeAllPlugins | ( | ) |
Definition at line 110 of file class.ilRTE.php.
References removePlugin().
Here is the call graph for this function:| ilRTE::removeButton | ( | $a_button_name | ) |
Removes a button from the button list.
Removes a button from the button list
| string | $a_button_name | The name of the button @access public |
Definition at line 126 of file class.ilRTE.php.
| ilRTE::removePlugin | ( | $a_plugin_name | ) |
Removes a plugin from the plugin list.
Removes a plugin from the plugin list
| string | $a_plugin_name | The name of the plugin @access public |
Reimplemented in ilTinyMCE.
Definition at line 101 of file class.ilRTE.php.
Referenced by removeAllPlugins().
Here is the caller graph for this function:| ilRTE::setInitialWidth | ( | $initialWidth | ) |
| integer | $initialWidth |
Definition at line 339 of file class.ilRTE.php.
References $initialWidth.
| ilRTE::setRTERootBlockElement | ( | ) |
Definition at line 308 of file class.ilRTE.php.
| ilRTE::$buttons |
Definition at line 46 of file class.ilRTE.php.
| ilRTE::$ctrl |
Definition at line 48 of file class.ilRTE.php.
|
protected |
Definition at line 54 of file class.ilRTE.php.
Referenced by getInitialWidth(), and setInitialWidth().
| ilRTE::$lng |
Definition at line 49 of file class.ilRTE.php.
Referenced by ilRTE().
| ilRTE::$plugins |
Definition at line 45 of file class.ilRTE.php.
| ilRTE::$tpl |
Definition at line 47 of file class.ilRTE.php.
Referenced by ilTinyMCE\addCustomRTESupport(), ilTinyMCE\addRTESupport(), ilTinyMCE\handleImgContextMenuItem(), and ilRTE().
| const ilRTE::ILIAS_IMG_MANAGER_PLUGIN = 'ilias_image_manager_plugin' |
Definition at line 36 of file class.ilRTE.php.
Referenced by ilSurveyEditorGUI\initHeadingForm(), and ilObjPaymentSettingsGUI\StatutoryRegulationsObject().