24 include_once(
"./Services/Form/classes/class.ilSubEnabledFormPropertyGUI.php");
 
   86                 "standard" => array (
"strong", 
"em", 
"u", 
"ol", 
"li", 
"ul", 
"p", 
"div",
 
   87                         "i", 
"b", 
"code", 
"sup", 
"sub", 
"pre", 
"strike", 
"gap"),
 
   89                         "a",
"blockquote",
"br",
"cite",
"code",
"div",
"em",
"h1",
"h2",
"h3",
 
   90                         "h4",
"h5",
"h6",
"hr",
"li",
"ol",
"p",
 
   91                         "pre",
"span",
"strike",
"strong",
"sub",
"sup",
"u",
"ul",
 
   93                 "extended_img" => array (
 
   94                         "a",
"blockquote",
"br",
"cite",
"code",
"div",
"em",
"h1",
"h2",
"h3",
 
   95                         "h4",
"h5",
"h6",
"hr",
"img",
"li",
"ol",
"p",
 
   96                         "pre",
"span",
"strike",
"strong",
"sub",
"sup",
"u",
"ul",
 
   98                 "extended_table" => array (
 
   99                         "a",
"blockquote",
"br",
"cite",
"code",
"div",
"em",
"h1",
"h2",
"h3",
 
  100                         "h4",
"h5",
"h6",
"hr",
"li",
"ol",
"p",
 
  101                         "pre",
"span",
"strike",
"strong",
"sub",
"sup",
"table",
"td",
 
  102                         "tr",
"u",
"ul", 
"i", 
"b", 
"gap"),
 
  103                 "extended_table_img" => array (
 
  104                         "a",
"blockquote",
"br",
"cite",
"code",
"div",
"em",
"h1",
"h2",
"h3",
 
  105                         "h4",
"h5",
"h6",
"hr",
"img",
"li",
"ol",
"p",
 
  106                         "pre",
"span",
"strike",
"strong",
"sub",
"sup",
"table",
"td",
 
  107                         "tr",
"u",
"ul", 
"i", 
"b", 
"gap"),
 
  109                         "a",
"blockquote",
"br",
"cite",
"code",
"div",
"em",
"h1",
"h2",
"h3",
 
  110                         "h4",
"h5",
"h6",
"hr",
"img",
"li",
"ol",
"p",
 
  111                         "pre",
"span",
"strike",
"strong",
"sub",
"sup",
"table",
"td",
 
  112                         "tr",
"u",
"ul",
"ruby",
"rbc",
"rtc",
"rb",
"rt",
"rp", 
"i", 
"b", 
"gap"));
 
  126                 $this->plugins = array();
 
  127                 $this->removeplugins = array();
 
  128                 $this->buttons = array();
 
  129                 $this->rteSupport = array();
 
  139                 $this->value = $a_value;
 
  159                 $this->cols = $a_cols;
 
  179                 $this->rows = $a_rows;
 
  199                 $this->usert = $a_usert;
 
  219                 $this->plugins[$a_plugin] = $a_plugin;
 
  229                 $this->removeplugins[$a_plugin] = $a_plugin;
 
  239                 $this->buttons[$a_button] = $a_button;
 
  249                 unset($this->buttons[$a_button]);
 
  259         function setRTESupport($obj_id, $obj_type, $module, $cfg_template = null, $hide_switch = 
false, $version = null)
 
  261                 $this->rteSupport = array(
"obj_id" => $obj_id, 
"obj_type" => $obj_type, 
"module" => $module, 
'cfg_template' => $cfg_template, 
'hide_switch' => $hide_switch, 
'version' => $version);
 
  269                 $this->rteSupport = array();
 
  279                 $this->rtetags = $a_rtetags;
 
  300                 $this->
setRteTags($this->rte_tag_set[$a_set_name]);
 
  311                 return $this->rte_tag_set[$a_set_name];
 
  335                 $this->use_tags_for_rte_only = $a_val;
 
  366                 include_once(
"./Services/AdvancedEditing/classes/class.ilObjAdvancedEditing.php");
 
  376                         if ($this->plugins[
"latex"] == 
"latex" && !is_int(strpos($allowed, 
"<span>")))
 
  387                         $this->
setAlert($lng->txt(
"msg_input_is_required"));
 
  401                 $ttpl = 
new ilTemplate(
"tpl.prop_textarea.html", 
true, 
true, 
"Services/Form");
 
  406                         $ttpl->setCurrentBlock(
"disabled_rte");
 
  407                         $ttpl->setVariable(
"DR_VAL", $this->
getValue());
 
  408                         $ttpl->parseCurrentBlock();
 
  414                                 include_once 
"./Services/RTE/classes/class.ilRTE.php";
 
  416                                 include_once 
"./Services/RTE/classes/class.$rtestring.php";
 
  417                                 $rte = 
new $rtestring($this->rteSupport[
'version']);
 
  420                                 $rte->addPlugin(
"emotions");
 
  421                                 foreach ($this->plugins as $plugin)
 
  425                                                 $rte->addPlugin($plugin);
 
  428                                 foreach ($this->removeplugins as $plugin)
 
  432                                                 $rte->removePlugin($plugin);
 
  436                                 foreach ($this->buttons as $button)
 
  440                                                 $rte->addButton($button);
 
  451                                 if (count($this->rteSupport) >= 3)
 
  453                                         $rte->addRTESupport($this->rteSupport[
"obj_id"], $this->rteSupport[
"obj_type"], $this->rteSupport[
"module"], 
false, $this->rteSupport[
'cfg_template'], $this->rteSupport[
'hide_switch']);
 
  457                                         $rte->addCustomRTESupport(0, 
"", $this->
getRteTags());
 
  460                                 $ttpl->touchBlock(
"prop_ta_w");
 
  461                                 $ttpl->setCurrentBlock(
"prop_textarea");
 
  462                                 $ttpl->setVariable(
"ROWS", $this->
getRows());
 
  466                                 $ttpl->touchBlock(
"no_rteditor");
 
  470                                         $ttpl->setCurrentBlock(
"prop_ta_c");
 
  471                                         $ttpl->setVariable(
"COLS", $this->
getCols());
 
  472                                         $ttpl->parseCurrentBlock();
 
  476                                         $ttpl->touchBlock(
"prop_ta_w");
 
  479                                 $ttpl->setCurrentBlock(
"prop_textarea");
 
  480                                 $ttpl->setVariable(
"ROWS", $this->
getRows());
 
  484                                 $ttpl->setVariable(
"POST_VAR",
 
  487                         $ttpl->setVariable(
"ID", $this->
getFieldId());
 
  490                                 $ttpl->setVariable(
'DISABLED',
'disabled="disabled" ');
 
  493                         $ttpl->parseCurrentBlock();
 
  498                         $ttpl->setVariable(
"HIDDEN_INPUT",
 
  503                 $a_tpl->setCurrentBlock(
"prop_generic");
 
  504                 $a_tpl->setVariable(
"PROP_GENERIC", $ttpl->get());
 
  505                 $a_tpl->parseCurrentBlock();
 
  560                 $this->root_block_element = $a_root_block_element;
 
  585                 if(is_array($a_button))
 
  587                         $this->disabled_buttons = array_unique(array_merge($this->disabled_buttons, $a_button));
 
  591                         $this->disabled_buttons = array_unique(array_merge($this->disabled_buttons, array($a_button)));
 
  609                         return implode(
',', $this->disabled_buttons);