CKEditor in CodeIgniter

后端 未结 7 847
别那么骄傲
别那么骄傲 2020-12-29 14:56

I wanna load CKEditor in CodeIgniter,I search a lot,but can\'t understand their way.

I placed ckeditor in application/plugins folder and now I wanna

7条回答
  •  情话喂你
    2020-12-29 15:38

    same problem is i am fessing but just little thing u need all file in asset folder in the root folder. my controller part is

    $this->load->library('ckeditor');
        $this->load->library('ckfinder');
    
        $this->ckeditor->basePath = base_url().'assets/admin/ckeditor/';
        $this->ckeditor->config['toolbar'] = array(
                                                    array( 'Source', '-', 'Bold', 'Italic', 'Underline', '-','Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo','-','NumberedList','BulletedList' )
                                                    );
        $this->ckeditor->config['language'] = 'en';
        $this->ckeditor->config['width'] = '730px';
        $this->ckeditor->config['height'] = '300px';            
    
    //Add Ckfinder to Ckeditor
        $this->ckfinder->SetupCKEditor($this->ckeditor,base_url().'asset/admin/ckfinder/');
    


    my view part is

    ckeditor->editor("event_description",((isset($event_description)) ? $event_description : ''));?>

    i putting ck editer folder in asset folder and asset folder in root file like
    C:\wamp\www\site\assets\admin\ckeditor

提交回复
热议问题