ILIAS
release_4-3 Revision
|
Rich Text Editor base class. More...
Public Member Functions | |
ilRTE ($a_version="") | |
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. | |
_cleanupMediaObjectUsage ($a_text, $a_usage_type, $a_usage_id) | |
synchronises appearances of media objects in $a_text with media object usage table | |
setRTERootBlockElement () | |
getRTERootBlockElement () | |
disableButtons () | |
getDisabledButtons () |
Static Public Member Functions | |
static | _getRTEClassname () |
static | _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 | |
static | _getMediaObjects ($a_text, $a_direction=0) |
Returns all media objects found in the passed string. |
Data Fields | |
const | ILIAS_IMG_MANAGER_PLUGIN = 'ilias_image_manager_plugin' |
$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 179 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().
|
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 258 of file class.ilRTE.php.
References ilObjMediaObject\_exists().
Referenced by ilObjPaymentSettingsGUI\saveStatutoryRegulationsObject().
|
static |
Definition at line 156 of file class.ilRTE.php.
References ilObjAdvancedEditing\_getRichTextEditor().
Referenced by ilContainerGUI\editPageContentObject(), ilTextAreaInputGUI\insert(), and assTextQuestionGUI\outQuestionForTest().
|
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 222 of file class.ilRTE.php.
References ilObjMediaObject\_exists().
Referenced by ilPurchaseBaseGUI\__sendBill(), SurveyQuestion\addMaterialTag(), ilObjSurvey\addMaterialTag(), assQuestion\addQTIMaterial(), ilObjTest\addQTIMaterial(), assQuestion\formatSAQuestion(), assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFlashQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assTextQuestionImport\fromXML(), assTextSubsetImport\fromXML(), assClozeTestImport\fromXML(), assImagemapQuestionImport\fromXML(), assJavaAppletImport\fromXML(), assMatchingQuestionImport\fromXML(), ilObjTest\fromXML(), ilForum\generatePost(), assQuestion\getFeedbackGeneric(), assImagemapQuestion\getFeedbackSingleAnswer(), assSingleChoice\getFeedbackSingleAnswer(), assMultipleChoice\getFeedbackSingleAnswer(), assErrorText\getFeedbackSingleAnswer(), assTextQuestion\getFeedbackSingleAnswer(), assMatchingQuestion\getFeedbackSingleAnswer(), assClozeTest\getFeedbackSingleAnswer(), ilObjTest\getManualFeedback(), ilObjSurvey\importObject(), ilSurveyImporter\importXmlRepresentation(), SurveyTextQuestion\loadFromDb(), assOrderingHorizontal\loadFromDb(), SurveyMultipleChoiceQuestion\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assErrorText\loadFromDb(), assNumeric\loadFromDb(), assClozeTest\loadFromDb(), assTextSubset\loadFromDb(), assTextQuestion\loadFromDb(), SurveySingleChoiceQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assMatchingQuestion\loadFromDb(), SurveyMetricQuestion\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assJavaApplet\loadFromDb(), assImagemapQuestion\loadFromDb(), SurveyMatrixQuestion\loadFromDb(), ilObjSurvey\loadFromDb(), assQuestion\loadFromDb(), ilObjTest\loadFromDb(), assQuestion\saveQuestionDataToDb(), ilObjPaymentSettingsGUI\saveStatutoryRegulationsObject(), assMultipleChoice\saveToDb(), assOrderingQuestion\saveToDb(), assSingleChoice\saveToDb(), ilObjSurvey\saveToDb(), SurveyQuestion\saveToDb(), ilObjTest\saveToDb(), ilShopShoppingCartGUI\showItems(), ilObjPaymentSettingsGUI\StatutoryRegulationsObject(), assOrderingHorizontal\toJSON(), assTextSubset\toJSON(), assErrorText\toJSON(), assImagemapQuestion\toJSON(), assOrderingQuestion\toJSON(), assSingleChoice\toJSON(), assMultipleChoice\toJSON(), assMatchingQuestion\toJSON(), and assClozeTest\toJSON().
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 82 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 150 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 |
Reimplemented in ilTinyMCE.
Definition at line 69 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 128 of file class.ilRTE.php.
ilRTE::addUserTextEditor | ( | $editor_selector | ) |
Adds support for an user text editor.
public
Reimplemented in ilTinyMCE.
Definition at line 138 of file class.ilRTE.php.
ilRTE::disableButtons | ( | ) |
Definition at line 305 of file class.ilRTE.php.
Referenced by ilTinyMCE\addCustomRTESupport().
ilRTE::getDisabledButtons | ( | ) |
Definition at line 310 of file class.ilRTE.php.
Referenced by ilTinyMCE\_buildAdvancedButtonsFromHTMLTags(), ilTinyMCE\_buildAdvancedTableButtonsFromHTMLTags(), and ilTinyMCE\_buildButtonsFromHTMLTags().
ilRTE::getRTERootBlockElement | ( | ) |
Reimplemented in ilTinyMCE.
Definition at line 300 of file class.ilRTE.php.
ilRTE::ilRTE | ( | $a_version = "" | ) |
Definition at line 51 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 112 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 |
Reimplemented in ilTinyMCE.
Definition at line 95 of file class.ilRTE.php.
ilRTE::setRTERootBlockElement | ( | ) |
Definition at line 295 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.
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 ilObjSurveyGUI\addHeadingObject(), and ilObjPaymentSettingsGUI\StatutoryRegulationsObject().