فهرست منبع

Installing ckeditor 4.1.1 in Chamilo in order to return to the old fckeditor just undo this change.

Julio Montoya 12 سال پیش
والد
کامیت
e1b5e8a975
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 2 1
      main/inc/lib/formvalidator/Element/html_editor.php
  2. 1 0
      main/inc/lib/template.lib.php

+ 2 - 1
main/inc/lib/formvalidator/Element/html_editor.php

@@ -47,7 +47,8 @@ class HTML_QuickForm_html_editor extends HTML_QuickForm_textarea
         $this->fullPage = false;
 
         $name = $this->getAttribute('name');
-        $this->fck_editor = new FCKeditor($name);
+        //$this->fck_editor = new FCKeditor($name);
+        $this->fck_editor = new ChamiloLMS\Component\Editor\Editor($name);
 
         $this->fck_editor->ToolbarSet = $fck_attribute['ToolbarSet'];
         $this->fck_editor->Width = !empty($fck_attribute['Width']) ? $fck_attribute['Width'] : '990';

+ 1 - 0
main/inc/lib/template.lib.php

@@ -429,6 +429,7 @@ class Template
             'jquery-ui/'.$this->jquery_ui_theme.'/jquery-ui-custom.min.js',
             //'jquery-ui/jquery.ui.touch-punch.js',
             'thickbox.js',
+            'ckeditor/ckeditor.js',
             'bootstrap/bootstrap.js',
         );