ILIAS
Release_3_10_x_branch Revision 61812
|
Rich Text Editor base class. More...
Public Member Functions | |
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. | |
addUserTextEditor ($editor_selector) | |
Adds support for an user text editor. | |
addCustomRTESupport ($obj_id, $obj_type, $tags) | |
Adds custom 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 |
Data Fields | |
$plugins | |
$buttons | |
$tpl | |
$ctrl | |
$lng |
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 177 of file class.ilRTE.php.
References $mobs, ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_removeUsage(), and ilObjMediaObject\_saveUsage().
Referenced by ilObjSurvey\cleanupMediaobjectUsage(), ilObjTest\cleanupMediaobjectUsage(), assQuestion\cleanupMediaObjectUsage(), ilContainerGUI\savePageContentObject(), SurveyTextQuestion\saveToDb(), SurveyNominalQuestion\saveToDb(), SurveyOrdinalQuestion\saveToDb(), SurveyMetricQuestion\saveToDb(), and SurveyMatrixQuestion\saveToDb().
ilRTE::_getRTEClassname | ( | ) |
Definition at line 154 of file class.ilRTE.php.
References ilObjAdvancedEditing\_getRichTextEditor().
Referenced by ilObjSurveyGUI\addHeadingObject(), ilTestCertificateGUI\certificateEditor(), ilContainerGUI\editPageContentObject(), SurveyMetricQuestionGUI\editQuestion(), SurveyNominalQuestionGUI\editQuestion(), SurveyOrdinalQuestionGUI\editQuestion(), SurveyTextQuestionGUI\editQuestion(), assTextSubsetGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), assNumericGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assOrderingQuestionGUI\editQuestion(), assImagemapQuestionGUI\editQuestion(), SurveyMatrixQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), assQuestionTypeTemplateGUI\feedback(), assTextQuestionGUI\feedback(), assNumericGUI\feedback(), assTextSubsetGUI\feedback(), assJavaAppletGUI\feedback(), assSingleChoiceGUI\feedback(), assOrderingQuestionGUI\feedback(), assImagemapQuestionGUI\feedback(), assMultipleChoiceGUI\feedback(), assMatchingQuestionGUI\feedback(), assClozeTestGUI\feedback(), ilTextAreaInputGUI\insert(), ilTestScoringGUI\manscoring(), assTextQuestionGUI\outQuestionForTest(), ilObjSurveyGUI\propertiesObject(), and ilObjTestGUI\propertiesObject().
ilRTE::_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
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 219 of file class.ilRTE.php.
References ilObjMediaObject\_exists().
Referenced by SurveyQuestion\addMaterialTag(), ilObjSurvey\addMaterialTag(), assQuestion\addQTIMaterial(), ilObjTest\addQTIMaterial(), assFlashQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assClozeTestImport\fromXML(), assImagemapQuestionImport\fromXML(), assJavaAppletImport\fromXML(), assMatchingQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assNumericImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), assTextSubsetImport\fromXML(), ilObjTest\fromXML(), assQuestion\getFeedbackGeneric(), assImagemapQuestion\getFeedbackSingleAnswer(), assSingleChoice\getFeedbackSingleAnswer(), assMultipleChoice\getFeedbackSingleAnswer(), ilObjTest\getManualFeedback(), ilObjSurvey\importObject(), SurveyTextQuestion\loadFromDb(), SurveyNominalQuestion\loadFromDb(), assClozeTest\loadFromDb(), SurveyOrdinalQuestion\loadFromDb(), SurveyMetricQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assNumeric\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assTextSubset\loadFromDb(), assMatchingQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assImagemapQuestion\loadFromDb(), SurveyMatrixQuestion\loadFromDb(), ilObjSurvey\loadFromDb(), ilObjTest\loadFromDb(), assQuestion\saveFeedbackGeneric(), assImagemapQuestion\saveFeedbackSingleAnswer(), assSingleChoice\saveFeedbackSingleAnswer(), assMultipleChoice\saveFeedbackSingleAnswer(), ilObjTest\saveManualFeedback(), assNumeric\saveToDb(), assOrderingQuestion\saveToDb(), assMultipleChoice\saveToDb(), assSingleChoice\saveToDb(), assMatchingQuestion\saveToDb(), assTextQuestion\saveToDb(), assTextSubset\saveToDb(), assImagemapQuestion\saveToDb(), SurveyTextQuestion\saveToDb(), SurveyNominalQuestion\saveToDb(), SurveyOrdinalQuestion\saveToDb(), assClozeTest\saveToDb(), assJavaApplet\saveToDb(), SurveyMetricQuestion\saveToDb(), SurveyMatrixQuestion\saveToDb(), ilObjSurvey\saveToDb(), and ilObjTest\saveToDb().
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 public |
Definition at line 80 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
public
Reimplemented in ilTinyMCE.
Definition at line 148 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 public |
Definition at line 67 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
public
Definition at line 126 of file class.ilRTE.php.
ilRTE::addUserTextEditor | ( | $editor_selector | ) |
Adds support for an user text editor.
public
Reimplemented in ilTinyMCE.
Definition at line 136 of file class.ilRTE.php.
ilRTE::ilRTE | ( | ) |
Definition at line 49 of file class.ilRTE.php.
References $ilCtrl, $lng, and $tpl.
Referenced by ilTinyMCE\ilTinyMCE().
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 public |
Definition at line 110 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 public |
Definition at line 93 of file class.ilRTE.php.
ilRTE::$buttons |
Definition at line 44 of file class.ilRTE.php.
ilRTE::$ctrl |
Definition at line 46 of file class.ilRTE.php.
ilRTE::$lng |
Definition at line 47 of file class.ilRTE.php.
Referenced by ilRTE().
ilRTE::$plugins |
Definition at line 43 of file class.ilRTE.php.
ilRTE::$tpl |
Definition at line 45 of file class.ilRTE.php.
Referenced by ilTinyMCE\addCustomRTESupport(), ilTinyMCE\addRTESupport(), and ilRTE().