作者luo74128 (小猫)
看板PHP
标题[请益] Codeigniter Fckeditor
时间Fri Oct 15 12:01:08 2010
各位大大有个配置问题请教!!我查了好多天了真不知道什麽问题!!
codeigniter 里面配置 fckeditor 问题,我照着网路上的教学做,
google 浏览器可以正常显示编辑表, firefox也可以正常显示编辑表 ,
唯独ie7显示的编辑表很怪(ie6,ie8正常),他会把工具列的图示像无限回圈一样排列在萤幕上。
***并且每一种浏览器测试直都无法post传递出去。***
我controller如下:
ps: base_url() 在config.php 里面我是设
http://127.0.0.1/maxim/
$this->load->helper('url');
$this->load->library('fckeditor', array(
'instanceName' => 'Pic',//第一个编辑气
'BasePath' => base_url().'system/application/plugins/fckeditor/',
'ToolbarSet' => 'Basic',
'Width'=>'100%',
'Height'=>'300',
'Value'=>'')
);
$this->fckeditor->InstanceName = 'IsFunction'; //第二个编辑器
$this->fckeditor->InstanceName = 'Special'; //第三个
$this->fckeditor->InstanceName = 'Exterior'; //第四个
$data['Pic'] = $this->fckeditor->CreateHtml();
$data['Exterior'] = $this->fckeditor->CreateHtml();
$data['IsFunction'] = $this->fckeditor->CreateHtml();
$data['Special'] = $this->fckeditor->CreateHtml();
$this->desk_layout->view('develope/develope_add', $data);
VIEW里:
<?=$Pic?>
<?=Exterior?>
<?=IsFunction?>
<?=Special?>
配置:
fckeditor资料夹 我放在
D:\AppServ\www\maxim\system\application\plugins\fckeditor\
并把这里面的fckeditor.php做了这样修改
ps:这个档案是由 fckeditor_php5.php 改档名为 fckeditor.php 的
修改部分:
public function __construct( $array )
{
$this->InstanceName = $array['instanceName'] ;
$this->BasePath = $array['BasePath'] ;
$this->Width = $array['Width'] ;
$this->Height = $array['Height'] ;
$this->ToolbarSet = $array['ToolbarSet'] ;
$this->Value = $array['Value'] ;
$this->Config = array() ;
}
并且复制一份到
D:\AppServ\www\maxim\system\application\libraries 资料夹底下
参考文献:
http://bagoesseptian.blogspot.com/2009/07/make-fckeditor-plugin-in-codeigniter.html
http://codeigniter.org.cn/forums/thread-1144-1-1.html
http://blog.sina.com.cn/s/blog_4b93170a0100b1e4.html
--
Aman ia vida 地下飞行
blog:
http://luo74128.blogspot.com/2010/07/blog-post.html
我:
http://www.wretch.cc/album/luo74128
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 211.148.136.58
1F:→ LewisHamiltn:装个firebug实地抓比较快... 10/15 17:34
2F:→ luo74128:我有查看过~看不出什麽异状!!不知为何无法传值 10/15 19:08
3F:→ luo74128:传值以解决但是!!ie系列送出表单会整个大跑版 10/15 19:22
4F:→ luo74128:左下角错误提示:物件不支援此属性或方法!! 10/15 19:24