<?php /** * WysiwygHtmlHeadBeforeJS.php - * Include this file in HTML-files before ckeditor.js is loaded. */ if (\Studip\Wysiwyg\Settings::getInstance()->isDisabled()) { $old_packages = array_flip(PageLayout::getSqueezePackages()); unset($old_packages['wysiwyg']); call_user_func_array('PageLayout::setSqueezePackages', array_values(array_flip($old_packages))); return; } ?> <script> CKEDITOR_BASEPATH = '<?php echo $GLOBALS['ABSOLUTE_URI_STUDIP'] . 'assets/javascripts/ckeditor/'; ?> '; </script>
if (Settings::getInstance()->isGloballyDisabled()) { return; } ?> <script type="text/javascript"> if (<?php echo Settings::getInstance()->isDisabled() ? 'true' : 'false'; ?> || CKEDITOR.env.isCompatible) { STUDIP.wysiwyg = { disabled: <?php echo Settings::getInstance()->isDisabled() ? 'true' : 'false'; ?> , settings: <?php echo Settings::getInstance()->asJson(); ?> , seminarId: '<?php echo $_SESSION['SessionSeminar']; ?> ', htmlMarker: '<?php echo addslashes(Markup::HTML_MARKER); ?> ', htmlMarkerRegExp: '<?php echo addslashes(Markup::HTML_MARKER_REGEXP); ?> ', isHtml: function isHtml(text) {