瀏覽代碼

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',
         );