From 0ea0a859c58de592b14759c1541ad7cefc87a462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Loguercio?= Date: Thu, 12 May 2016 12:10:58 -0500 Subject: [PATCH] Load ckeditor js plugin only when user is logged on - Refs #8233 --- main/inc/lib/template.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/inc/lib/template.lib.php b/main/inc/lib/template.lib.php index 427294bb91..74da521e46 100755 --- a/main/inc/lib/template.lib.php +++ b/main/inc/lib/template.lib.php @@ -670,7 +670,7 @@ class Template 'bootstrap/dist/js/bootstrap.min.js', 'jquery-ui/jquery-ui.min.js', 'moment/min/moment-with-locales.min.js', - 'ckeditor/ckeditor.js', + api_is_anonymous() ? '' : 'ckeditor/ckeditor.js', 'bootstrap-daterangepicker/daterangepicker.js', 'jquery-timeago/jquery.timeago.js', 'mediaelement/build/mediaelement-and-player.min.js',