CodeIgniter - CKEditor 的默认值
我需要在我的项目中使用 ckeditor 实例的默认值。 在我的控制器中,我以这种方式加载 ckedotir 和 ckfinder 的帮助程序:
$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");
加载表单,但我无法理解如何设置默认值...你能帮助我吗?
i need to use a default value for an instance of ckeditor into my project.
In my controller i load the helper for ckedotir and ckfinder in this way:
$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/');
then into my view i use:
echo $this->ckeditor->editor("area1");
echo $this->ckeditor->editor("area2");
to load the form but i can't understand how set default value...can you help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
默认值是
editor()
方法的第二个参数。The default value is the second parameter of the
editor()
method.