diff --git a/index.php b/index.php index 321613a01d..e1424d20cd 100755 --- a/index.php +++ b/index.php @@ -7,6 +7,7 @@ use \ChamiloSession as Session; define('CHAMILO_HOMEPAGE', true); +define('CHAMILO_LOAD_WYSIWYG', false); /* Flag forcing the 'current course' reset, as we're not inside a course anymore. */ // Maybe we should change this into an api function? an example: CourseManager::unset(); diff --git a/main/inc/lib/api.lib.php b/main/inc/lib/api.lib.php index cc3e826a38..1d2c6cf20f 100644 --- a/main/inc/lib/api.lib.php +++ b/main/inc/lib/api.lib.php @@ -571,8 +571,11 @@ define('SHORTCUTS_VERTICAL', 1); // Image class define('IMAGE_PROCESSOR', 'gd'); // 'imagick' or 'gd' strings -// Avoid loading CKeditor lib on homepage (very heavy lib) -define('CHAMILO_LOAD_WYSIWYG', false); +// Make sure the CHAMILO_LOAD_WYSIWYG constant is defined +// To remove CKeditor libs from HTML, set this constant to true before loading +if (!defined('CHAMILO_LOAD_WYSIWYG')) { + define('CHAMILO_LOAD_WYSIWYG', true); +} /** * Inclusion of internationalization libraries