ckeditor - Unable to integrate text editor into Moodle 2 -


i have not been able integrate ckeditor moodle 2.9.1+. (i suspect issue apply text editor, not ckeditor.)

per readme instructions, cloned moodle-ckeditor https://github.com/electrolinux/moodle-ckeditor lib/editor directory of moodle installation administer.

i renamed downloaded directory moodle-ckeditor ckeditor.

i added line config.php in root moodle directory:

$cfg->texteditors='ckeditor,tinymce,htmlarea'; 

when navigate admin > plugins > text editors > manage editors, see original 3 editors: tinymcs html editor, plain text area, , atto html editor.

fwiw, when experimentally removed "tinymce," shown line of config.php, still showed on "manage editors" page. makes me think $cfg->texteditors not being used. know being read, because error on "manage editors" page if put syntax error line.

i've appended console session in case call attention or rule out mistakes due typos, permissions, etc.:

[~/public_html]# grep ckeditor config.php $cfg->texteditors='ckeditor,tinymce,htmlarea'; [~/public_html]# ls -l lib/editor total 28 drwxr-xr-x  7 millscso millscso 4096 jul 23 16:09 ./ drwxr-xr-x 48 millscso millscso 4096 jul 16 02:16 ../ drwxr-xr-x  9 millscso millscso 4096 jul 16 02:16 atto/ drwxr-xr-x  5 millscso millscso 4096 jul 23 16:09 ckeditor/ drwxr-xr-x  7 millscso millscso 4096 jul 23 15:59 ckeditor-/ -rw-r--r--  1 millscso millscso    0 jul 16 02:16 index.html drwxr-xr-x  3 millscso millscso 4096 jul 16 02:16 textarea/ drwxr-xr-x  9 millscso millscso 4096 jul 16 02:16 tinymce/ 

update

a few days after reverting change config.php, "ckeditor html editor" began showing within admin > plugins > text editors > manage editors. unfortunately, when click on settings [http://mills-cs.org/admin/settings.php?section=editorsettingsckeditor], section error.

works me moodle 2.7, here's did

  1. git clone https://github.com/electrolinux/moodle-ckeditor.git

  2. copied , pasted folder /moodle-ckeditor/ moodlewww/lib/editor/

  3. renamed moodlewww/lib/editor/moodle-ckeditor/ moodlewww/lib/editor/ckeditor/

  4. logged site , clicked on site admin -> notifications install ckeditor

  5. i skipped $cfg->texteditors='ckeditor,tinymce,htmlarea';

  6. instead went site admin -> plugins -> editors -> manage editors enabled ckeditor - might what's wrong in case?

  7. then moved ckeditor list first.

update:

i tried install of 2.9 , failed because version.php file missing - i'm guessing requirement in 2.9.

i have debugger on development. might find useful too, have these settings in config.php

// developer settings - not production! error_reporting(e_all & ~e_strict); ini_set('display_errors', 1);  $cfg->debug = e_all & ~e_strict; $cfg->debugdisplay = true; 

so created missing file /lib/editor/ckeditor/version.php contents below , installed correctly in 2.9

<?php // file part of moodle - http://moodle.org/ // // moodle free software: can redistribute and/or modify // under terms of gnu general public license published // free software foundation, either version 3 of license, or // (at option) later version. // // moodle distributed in hope useful, // without warranty; without implied warranty of // merchantability or fitness particular purpose.  see // gnu general public license more details. // // should have received copy of gnu general public license // along moodle.  if not, see <http://www.gnu.org/licenses/>.  /**  * ckeditor text editor integration version file.  *  * @package    editor_ckeditor  * @copyright    * @license    http://www.gnu.org/copyleft/gpl.html gnu gpl v3 or later  */  defined('moodle_internal') || die();  $plugin->version   = 2015073000;        // current plugin version (date: yyyymmddxx) $plugin->requires  = 2015051100;        // requires moodle version $plugin->component = 'editor_ckeditor';  // full name of plugin (used diagnostics) 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -