2
我需要在我的项目中使用ckeditor实例的默认值。 在我控制我加载ckedotir和ckfinder助手这样:CodeIgniter - CKEditor的默认值
$this->load->library('ckeditor');
$this->load->library('ckfinder');
$this->ckeditor->basePath = base_url().'asset/ckeditor/';
$this->ckeditor->config['toolbar'] = array(
array('Source', '-', 'Bold', 'Italic', 'Underline', '-','Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo','-','NumberedList','BulletedList')
);
$this->ckeditor->config['language'] = 'it';
$this->ckeditor->config['width'] = '730px';
$this->ckeditor->config['height'] = '300px';
$this->ckfinder->SetupCKEditor($this->ckeditor,'../../asset/ckfinder/');
然后进入我的看法,我使用:
echo $this->ckeditor->editor("area1");
echo $this->ckeditor->editor("area2");
加载的形式,但我不明白怎么设置默认价值...你能帮助我吗?
谢谢本,它的工作原理! –