Rev 1371 | Rev 1381 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1371 | Rev 1375 | ||
---|---|---|---|
Line 67... | Line 67... | ||
67 | * @param string $text |
67 | * @param string $text |
68 | * @return void |
68 | * @return void |
69 | * @throws \ViaThinkSoft\OIDplus\OIDplusException |
69 | * @throws \ViaThinkSoft\OIDplus\OIDplusException |
70 | */ |
70 | */ |
71 | public function modifyContent(string $id, string &$title, string &$icon, string &$text) { |
71 | public function modifyContent(string $id, string &$title, string &$icon, string &$text) { |
72 | $payload = '<br /> <a href="'.OIDplus::webpath(null,OIDplus::PATH_ABSOLUTE) |
72 | $payload = '<br /> <a href="'.OIDplus::webpath(null,OIDplus::PATH_ABSOLUTE_CANONICAL) |
73 | .'rest/v1/objects/'.htmlentities($id).'" class="gray_footer_font" target="_blank">'._L('REST API').'</a> ' |
73 | .'rest/v1/objects/'.htmlentities($id).'" class="gray_footer_font" target="_blank">'._L('REST API').'</a> ' |
74 | .'(<a '.OIDplus::gui()->link('oidplus:rest_api_information_admin$endpoints:1.3.6.1.4.1.37476.2.5.2.4.1.0').' class="gray_footer_font">'._L('Documentation').'</a>)'; |
74 | .'(<a '.OIDplus::gui()->link('oidplus:rest_api_information_admin$endpoints:1.3.6.1.4.1.37476.2.5.2.4.1.0').' class="gray_footer_font">'._L('Documentation').'</a>)'; |
75 | 75 | ||
76 | $text = str_replace('<!-- MARKER 6 -->', '<!-- MARKER 6 -->'.$payload, $text); |
76 | $text = str_replace('<!-- MARKER 6 -->', '<!-- MARKER 6 -->'.$payload, $text); |
77 | } |
77 | } |
Line 1589... | Line 1589... | ||
1589 | } |
1589 | } |
1590 | 1590 | ||
1591 | $out = '<script> |
1591 | $out = '<script> |
1592 | tinymce.EditorManager.baseURL = "vendor/tinymce/tinymce"; |
1592 | tinymce.EditorManager.baseURL = "vendor/tinymce/tinymce"; |
1593 | tinymce.init({ |
1593 | tinymce.init({ |
1594 | document_base_url: "'.OIDplus::webpath(null,OIDplus::PATH_ABSOLUTE_CANONICAL).'", |
1594 | document_base_url: "'.OIDplus::webpath(null,OIDplus::PATH_ABSOLUTE_CANONICAL).'", // TODO: canonical or not?! |
1595 | selector: "#'.$name.'", |
1595 | selector: "#'.$name.'", |
1596 | height: 200, |
1596 | height: 200, |
1597 | statusbar: false, |
1597 | statusbar: false, |
1598 | // menubar:false, |
1598 | // menubar:false, |
1599 | // toolbar: "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table | fontsizeselect", |
1599 | // toolbar: "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table | fontsizeselect", |