Проблемы установки CKeditor в Kohana (v2) - PullRequest
1 голос
/ 19 июля 2010

Я пытаюсь установить CKeditor на Kohana 2. Я поместил папку ckeditor в библиотеки / и поместил ckeditor.php рядом с папкой ckeditor в библиотеки /.Я пытаюсь вызвать ckeditor в моем контроллере со следующим:

$this->ckeditor = new Ckeditor('FCKEDITOR1');
$this->ckeditor->BasePath = 'application/libraries/ckeditor/';
$this->ckeditor->value = 'This is some <strong>sample text</strong>.' ;
$this->ckeditor->create();

Я получаю следующую ошибку и с трудом решаю ее:Вызов неопределенного метода CKEditor :: create () в [путь отредактирован] /app-admin/controllers/blog.php в строке 18

1 Ответ

3 голосов
/ 19 июля 2010

ну, это просто: в классе CKEditor такой функции нет.

также нашел это в комментариях:

 * Example 1: get the code creating %CKEditor instance and print it on a page with the "echo" function.

 * $CKEditor = new CKEditor();
 * $CKEditor->returnOutput = true;
 * $code = $CKEditor->editor("editor1", "<p>Initial value.</p>");
 * echo "<p>Editor 1:</p>";
 * echo $code;
...