CkEditor를 Moodle 2.9.1+와 통합 할 수 없었습니다. (이 문제는 CkEditor뿐만 아니라 모든 텍스트 편집기에 적용될 것이라고 생각합니다.)
당 README 지침 , 나는 복제 moodle-ckeditor
에서 https://github.com/electrolinux/moodle-ckeditor 로 lib/editor
무들 설치 I의 관리]의 디렉토리.
다운로드 한 디렉토리의 이름을 moodle-ckeditor
에서 ckeditor
.
이 줄을 config.php
루트 무들 디렉토리에 추가했습니다 .
$CFG->texteditors='ckeditor,tinymce,htmlarea';
Admin> Plugins> Text editors> Manage editors로 이동하면 TinyMCS HTML 편집기, 일반 텍스트 영역 및 Atto HTML 편집기의 원본 3 개 편집기 만 표시됩니다.
FWIW, "tinymce,"
표시된 줄에서 실험적으로 제거해도 config.php
"편집자 관리"페이지에 계속 표시됩니다. 그게 사용 $CFG->texteditors
되지 않는다고 생각하게합니다 . 해당 줄에 구문 오류를 입력하면 "편집자 관리"페이지에서 오류가 발생하기 때문에 읽고 있다는 것을 알고 있습니다.
오타, 권한 등으로 인한 실수에주의를 기울이거나 배제하기 위해 콘솔 세션을 추가했습니다.
[~/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/
최신 정보
변경 사항을로 되 돌린 후 며칠 후 config.php
관리> 플러그인> 텍스트 편집기> 편집기 관리에 "CKEditor HTML 편집기"가 표시되기 시작했습니다. 안타깝게도 설정 [ http://mills-cs.org/admin/settings.php?section=editorsettingsckeditor]을 클릭 하면 섹션 오류가 발생 합니다.
Moodle 2.7과 함께 작동합니다. 여기에 제가 한 작업이 있습니다.
git clone https://github.com/electrolinux/moodle-ckeditor.git
/ moodle-ckeditor / 폴더를 복사하여 moodlewww / lib / editor /에 붙여 넣었습니다.
이름이 moodlewww / lib / editor / moodle-ckeditor /에서 moodlewww / lib / editor / ckeditor /로 변경되었습니다.
내 사이트에 로그인하고 사이트 관리자-> ckeditor 설치 알림을 클릭했습니다.
$ CFG-> texteditors = 'ckeditor, tinymce, htmlarea'를 건너 뛰었습니다.
대신 사이트 관리자-> 플러그인-> 편집기-> 편집기 관리로 이동 한 다음 ckeditor 를 활성화 했습니다. 이것이 귀하의 경우에 문제가 될 수 있습니까?
그런 다음 ckeditor를 목록 위로 이동하여 첫 번째가되었습니다.
최신 정보:
2.9 설치로 시도했지만 version.php 파일이 없어서 실패했습니다. 이것이 2.9의 요구 사항이라고 생각합니다.
저는 항상 개발시 디버거를 가지고 있습니다. 유용 할 수도 있습니다. 이러한 설정을config.php
// Developer settings - not for production!
error_reporting(E_ALL & ~E_STRICT);
ini_set('display_errors', 1);
$CFG->debug = E_ALL & ~E_STRICT;
$CFG->debugdisplay = true;
그래서 /lib/editor/ckeditor/version.php
아래 내용으로 누락 된 파일 을 생성 했고 2.9에서 올바르게 설치되었습니다.
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with 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; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2015051100; // Requires this Moodle version
$plugin->component = 'editor_ckeditor'; // Full name of the plugin (used for diagnostics)
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다