24 include_once(
"./Services/Form/classes/class.ilSubEnabledFormPropertyGUI.php");
45 "standard" => array (
"strong",
"em",
"u",
"ol",
"li",
"ul",
"p",
"div",
46 "i",
"b",
"code",
"sup",
"sub",
"pre",
"strike",
"gap"),
48 "a",
"blockquote",
"br",
"cite",
"code",
"div",
"em",
"h1",
"h2",
"h3",
49 "h4",
"h5",
"h6",
"hr",
"li",
"ol",
"p",
50 "pre",
"span",
"strike",
"strong",
"sub",
"sup",
"u",
"ul",
52 "extended_img" => array (
53 "a",
"blockquote",
"br",
"cite",
"code",
"div",
"em",
"h1",
"h2",
"h3",
54 "h4",
"h5",
"h6",
"hr",
"img",
"li",
"ol",
"p",
55 "pre",
"span",
"strike",
"strong",
"sub",
"sup",
"u",
"ul",
57 "extended_table" => array (
58 "a",
"blockquote",
"br",
"cite",
"code",
"div",
"em",
"h1",
"h2",
"h3",
59 "h4",
"h5",
"h6",
"hr",
"li",
"ol",
"p",
60 "pre",
"span",
"strike",
"strong",
"sub",
"sup",
"table",
"td",
61 "tr",
"u",
"ul",
"i",
"b",
"gap"),
62 "extended_table_img" => array (
63 "a",
"blockquote",
"br",
"cite",
"code",
"div",
"em",
"h1",
"h2",
"h3",
64 "h4",
"h5",
"h6",
"hr",
"img",
"li",
"ol",
"p",
65 "pre",
"span",
"strike",
"strong",
"sub",
"sup",
"table",
"td",
66 "tr",
"u",
"ul",
"i",
"b",
"gap"),
68 "a",
"blockquote",
"br",
"cite",
"code",
"div",
"em",
"h1",
"h2",
"h3",
69 "h4",
"h5",
"h6",
"hr",
"img",
"li",
"ol",
"p",
70 "pre",
"span",
"strike",
"strong",
"sub",
"sup",
"table",
"td",
71 "tr",
"u",
"ul",
"ruby",
"rbc",
"rtc",
"rb",
"rt",
"rp",
"i",
"b",
"gap"));
85 $this->plugins = array();
86 $this->buttons = array();
87 $this->rteSupport = array();
97 $this->value = $a_value;
117 $this->cols = $a_cols;
137 $this->rows = $a_rows;
157 $this->usert = $a_usert;
177 $this->plugins[$a_plugin] = $a_plugin;
187 unset($this->plugins[$a_plugin]);
197 $this->buttons[$a_button] = $a_button;
207 unset($this->buttons[$a_button]);
219 $this->rteSupport = array(
"obj_id" => $obj_id,
"obj_type" => $obj_type,
"module" => $module);
227 $this->rteSupport = array();
237 $this->rtetags = $a_rtetags;
258 $this->
setRteTags($this->rte_tag_set[$a_set_name]);
269 return $this->rte_tag_set[$a_set_name];
305 include_once(
"./Services/AdvancedEditing/classes/class.ilObjAdvancedEditing.php");
314 $this->
setAlert($lng->txt(
"msg_input_is_required"));
330 include_once
"./Services/RTE/classes/class.ilRTE.php";
332 include_once
"./Services/RTE/classes/class.$rtestring.php";
333 $rte =
new $rtestring();
336 $rte->addPlugin(
"emotions");
337 foreach ($this->plugins as $plugin)
341 $rte->addPlugin($plugin);
345 foreach ($this->buttons as $button)
349 $rte->addButton($button);
352 if (count($this->rteSupport) == 3)
354 $rte->addRTESupport($this->rteSupport[
"obj_id"], $this->rteSupport[
"obj_type"], $this->rteSupport[
"module"]);
358 $rte->addCustomRTESupport(0,
"", $this->
getRteTags());
361 $a_tpl->touchBlock(
"prop_ta_w");
362 $a_tpl->setCurrentBlock(
"prop_textarea");
363 $a_tpl->setVariable(
"ROWS", $this->
getRows());
367 $a_tpl->touchBlock(
"no_rteditor");
371 $a_tpl->setCurrentBlock(
"prop_ta_c");
372 $a_tpl->setVariable(
"COLS", $this->
getCols());
373 $a_tpl->parseCurrentBlock();
377 $a_tpl->touchBlock(
"prop_ta_w");
380 $a_tpl->setCurrentBlock(
"prop_textarea");
381 $a_tpl->setVariable(
"ROWS", $this->
getRows());
383 $a_tpl->setVariable(
"POST_VAR",
385 $a_tpl->setVariable(
"ID", $this->
getFieldId());
388 $a_tpl->setVariable(
'DISABLED',
'disabled="disabled" ');
390 $a_tpl->setVariable(
"PROPERTY_VALUE", $this->
getValue());
391 $a_tpl->parseCurrentBlock();