undo change CHAMILO_LOAD_WYSIWYG

pull/2487/head
jmontoyaa 9 years ago
parent a28e8da480
commit 1a8baf42b8
  1. 1
      index.php
  2. 7
      main/inc/lib/api.lib.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();

@ -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

Loading…
Cancel
Save