1<script src="<?= e($ckeditor_path) ?>ckeditor.js"></script> 2 3<script> 4 const CKEDITOR_BASEPATH = <?= json_encode($ckeditor_path) ?>; 5 6 // Enable for all browsers 7 CKEDITOR.env.isCompatible = true; 8 9 // Disable toolbars 10 CKEDITOR.config.language = <?= json_encode(strtolower($language)) ?>; 11 CKEDITOR.config.removePlugins = "forms,newpage,preview,print,save,templates,flash,iframe"; 12 CKEDITOR.config.extraAllowedContent = "area[shape,coords,href,target,alt,title];map[name];img[usemap];*[class,style]"; 13 14 // Activate the editor 15 document.querySelectorAll("textarea.html-edit").forEach((node) => { 16 CKEDITOR.replace(node.id); 17 }); 18</script> 19