24 require_once
"./Services/Object/classes/class.ilObject.php";
46 include_once
"./Services/Administration/classes/class.ilSetting.php";
47 $this->setting =
new ilSetting(
"advanced_editing");
49 $this->
ilObject($a_id,$a_call_by_reference);
60 if (!parent::update())
80 if (!parent::delete())
113 return $roles ? $roles : array();
129 function notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params = 0)
169 if ($a_node_id==
$_GET[
"ref_id"])
171 $parent_obj =& $this->ilias->obj_factory->getInstanceByRefId($a_node_id);
172 $parent_type = $parent_obj->getType();
173 if($parent_type == $this->
getType())
175 $a_node_id = (int) $tree->getParentId($a_node_id);
179 parent::notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params);
193 include_once
"./Services/Administration/classes/class.ilSetting.php";
195 $tags =
$setting->get(
"advanced_editing_used_html_tags_" . $a_module);
198 $usedtags = unserialize($tags);
202 if($a_module ==
'frm_post' || $a_module ==
'exc_ass')
259 if($a_module ===
'frm_post')
261 if(!in_array(
'div', $usedtags))
266 if(!in_array(
'blockquote', $usedtags))
268 $usedtags[] =
'blockquote';
287 foreach ($tags as $tag)
303 include_once
"./Services/Administration/classes/class.ilSetting.php";
305 $js =
$setting->get(
"advanced_editing_javascript_editor");
318 include_once
"./Services/Administration/classes/class.ilSetting.php";
320 $setting->set(
"advanced_editing_javascript_editor", $a_js_editor);
337 if (strlen($a_module))
339 $auto_added_tags = array();
342 if($a_module ==
'frm_post')
344 if(!in_array(
'div', $a_html_tags))
346 $auto_added_tags[] =
'div';
349 if(!in_array(
'blockquote', $a_html_tags))
351 $auto_added_tags[] =
'blockquote';
355 include_once
"./Services/Administration/classes/class.ilSetting.php";
357 $setting->set(
"advanced_editing_used_html_tags_" . $a_module, serialize(array_merge((array)$a_html_tags, $auto_added_tags)));
359 if(count($auto_added_tags))
361 require_once
'Services/AdvancedEditing/exceptions/class.ilAdvancedEditingRequiredTagsException.php';
364 $lng->txt(
'advanced_editing_required_tags'),
365 implode(
', ', $auto_added_tags)
536 foreach ($tags as $tag)
553 $ilUser->writePref(
"show_rte", $a_state);
567 if (strlen($ilUser->getPref(
"show_rte")) > 0)
569 return $ilUser->getPref(
"show_rte");