配置
ckeditor
1.
上傳
下載
ckeditor
文件
和ckckfinder到網(wǎng)站根目錄js目錄下。
2.ckeditor/ckeditor_
php
5.php 改名為ckeditor.php 放入libraries??,ckfinder/ckfinder.php 文件放入libraries??。
3.controllers 使用
?
$this->load->library('ckeditor'); $this->load->library('ckFinder'); $this -> ckeditor = new CKEditor(); $this -> ckeditor->basePath = '/js/ckeditor/'; $this -> ckeditor -> config['toolbar'] = 'Full'; $this -> ckeditor -> config['language'] = 'zh-tw';// $this -> ckeditor -> config[''] 添加一些你需要的配置詳細(xì)參數(shù)自己查一下 CKFinder::SetupCKEditor($this -> ckeditor, '/js/ckfinder/');
?
4.views
?
<script src="<?php echo base_url();?>js/ckeditor/ckeditor.js" type="text/javascript"></script> <script type="text/javascript" src="<?php echo base_url();?>js/ckfinder/ckfinder.js"></script>?
顯示ckeditor
?
<?php echo $this->ckeditor->editor("mailtpl_content", $edit_row['mailtpl_content']);?>?
?
修改一下ckfinder/config.php??
設(shè)置
圖片
上傳權(quán)限
?
function CheckAuthentication() { return true;//第32行 false改為true } $baseUrl = '/js/ckfinder/userfiles/'; //圖片上傳目錄?
這個(gè)圖片是我事先放進(jìn)去的圖片
這里我郁悶了。在本地可以上傳圖片。
傳到網(wǎng)上就提示這個(gè)。上傳和刪除都會(huì)提示
在\ckfinder\userfiles目錄 有個(gè).htaccess 文件,刪除后一切正常。
?
?
來源:http://codeigniter.org.cn/forums/thread-5736-1-1.html
?
?
?
?
?
?
?
更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號(hào)聯(lián)系: 360901061
您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對(duì)您有幫助就好】元
