Using CKEditor inside blade template [Laravel 3.x]

后端 未结 2 1984
悲哀的现实
悲哀的现实 2021-01-27 22:30

I\'d like to use this bundle: laravel-ckeditor but I have troubles in nesting it in my view (all previous installation steps I\'ve done successfully). How can i connect Form::te

2条回答
  •  醉话见心
    2021-01-27 23:03

    here is an example of working TinyMCE:

    
        

    {{ Form::label('title', 'Tytuł') }}

    {{ $errors->first('title', '
    ×:message
    ') }}

    {{ Form::text('title', $value = $post->title, $attributes = array(Input::old('title'))); }}

    {{ Form::label('body', 'Tekst') }}

    {{ $errors->first('body', '
    ×:message
    ') }}

    {{ RTE::rich_text_box('body',$post->body,array('att'=>array('id'=>'editorID'),'selector'=>'editorSelector','mode'=>'full','setup'=>array('skin'=>'o2k7','skin_variant'=>'black'))) }}

    {{ Form::submit('Edit') }}

    the trick was to use it INSTEAD of Form::text (and change all file permissions in /laravel/public/bundles/* for 0755) the same thing was about CKEditor. hope it will help others in a future (:

提交回复
热议问题