26 protected \ILIAS\DI\UIServices
$ui;
28 protected \ilLanguage
$lng;
34 $this->
ctrl = $DIC->ctrl();
35 $this->
lng = $DIC->language();
36 $this->
ui = $DIC->ui();
47 $lang_vars = [
"cont_last_update",
"cont_error",
"cont_sel_el_cut_use_paste",
"cont_sel_el_copied_use_paste",
48 "cont_ed_new_col_before",
"cont_ed_new_col_after",
"cont_ed_col_left",
"cont_ed_col_right",
"cont_ed_delete_col",
49 "cont_ed_new_row_before",
"cont_ed_new_row_after",
"cont_ed_row_up",
"cont_ed_row_down",
"cont_ed_delete_row",
"cont_saving",
50 "cont_ed_nr_cols",
"cont_ed_nr_rows",
51 "cont_merge_cells",
"cont_split_cell"
54 foreach ($lang_vars as $l) {
61 $main_tpl->
addJavaScript(
"node_modules/tinymce/tinymce.min.js");
68 $dummy = new \ilPropertyFormGUI();
71 $this->
ui->renderer()->render(
72 $this->
ui->factory()->modal()->roundtrip(
"", $this->ui->factory()->legacy()->content(
""))
78 return str_replace([
"<",
">",
"'",
"\""],
"", $attr);
82 string $openPlaceHolderPcId =
"",
83 string $openFormPcId =
"",
84 string $openFormCName =
""
88 $p1 = $this->sanitizeAttribute(
89 ILIAS_HTTP_PATH .
"/" . $ctrl->getLinkTargetByClass([
"ilPageEditorGUI",
"ilPageEditorServerAdapterGUI"],
"invokeServer")
91 $p2 = $this->sanitizeAttribute($ctrl->getFormActionByClass(
"ilPageEditorGUI"));
92 $p3 = $this->sanitizeAttribute($openPlaceHolderPcId);
93 $p4 = $this->sanitizeAttribute($openFormPcId);
94 $p5 = $this->sanitizeAttribute($openFormCName);
97<span
id=
'il-copg-init'
100 data-open-place-holder-pc-
id=
'$p3'
101 data-open-
form-pc-
id=
'$p4'
102 data-open-
form-cname=
'$p5'
109<script type=
"module" src=
"$debug./components/ILIAS/COPage/Editor/js/src/editor.js"></script>
111 return $init_span . $module_tag;
getInitHtml(string $openPlaceHolderPcId="", string $openFormPcId="", string $openFormCName="")
sanitizeAttribute(string $attr)
initUI(\ilGlobalTemplateInterface $main_tpl)
toJS($a_lang_key, ?ilGlobalTemplateInterface $a_tpl=null)
Transfer text to Javascript.
static initConnection(?ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Connection module.
addJavaScript(string $a_js_file, bool $a_add_version_parameter=true, int $a_batch=2)
Add a javascript file that should be included in the header.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
form( $class_path, string $cmd, string $submit_caption="")