connected ckeditor, everything works ckeditor is working but the text will not change

Will not change,

<div class="content_day"> <div class="content_day_info"> <div class="filter">{!! $content_day->filter !!}</div> <div class="time"><p>{!! date('M d, YH:i', strtotime($content_day->time_create)) !!}</p></div> </div> <div class="content_day_content"> <h2>{!! $content_day->content !!}</h2> </div> <div class="author">{!! $content_day->author !!}</div> <img class="content_day_image" src="{{ url('img/dev.jpg') }}"> <div> {!! $content_day->content_text !!} </div> </div> 

$ content_day-> content_text - ckeditor should change this

    2 answers 2

    Apparently you use the templating engine, but the essence is simple: for example, we have a text field that is attached to the ckeditor. He has id replace. On this page you connect two files - ck_init.js and ckeditor. You get the last one from downloaded from the official site, and you create ck_init yourself and write something like this

     $(document).ready(function() { if($('#replace').length > 0) CKEDITOR.replace('replace', { filebrowserUploadUrl : '/ajax/ckupload' }); 

    });

    Of course, you need to connect jQuery. And, in fact, everything. Then from this field, using the name key, get the values ​​and process them.

    • var ckeditor1 = CKEDITOR.replace ('editor'); AjexFileManager.init ({returnTo: 'ckeditor', editor: ckeditor1}); I added this ... when I put your code failed (ckeditor didn't work at all) - aziz jon

    Well, if everything is so bad, then keep the ready code https://yadi.sk/d/nhh9rI5K3Pftsy . Should help. Tried to paint as easy as possible