0

我是 Codeigniter 的新手。我正在开发一个应用程序;为此,我需要将 FCKEditor 与 codeigniter 集成。我试过了,但它不工作。我收到这样的错误 - 请帮助我。我尝试了http://bagoesseptian.blogspot.in/2009/07/make-fckeditor-plugin-in-codeigniter.html

A PHP Error was encountered
Severity: Notice
Message: Undefined property: CI_Loader::$Fckeditor
Filename: admin/events.php
Line Number: 5
Fatal error: Call to a member function Create() on a non-object
4

1 回答 1

0

这似乎不是一个好方法。试试这个方法: 步骤: 1.从http://ckeditor.com/download
下载 CKEditor 2.在 codeigniter 的 index 目录中解压 3.在 header 中使用这个语法:

<script type="text/javascript" src="<?php echo $this->config->item('base_url'); ?>/ckeditor/ckeditor.js"></script>

4.在要放置编辑器的正文中使用它:

<textarea name="n_notification" id="n_notification"></textarea>

5.使用它来启动:

<script>
$(document).ready(function() {
    CKEDITOR.replace( 'n_notification');
}
</script>

如果您想要图像上传器,可以参考http://dwij.co.in/ckeditor-ckfinder-integration-using-php/将 CKEditor 与 CKFinder(文件浏览器)集成。

于 2013-06-01T05:53:58.870 回答