lundi 1 janvier 2018

How to update tinymce data from database using laravel

I'm having a trouble here guys hope you can help me.

The tinymce works absolutely fine when saving it to the database, the problem is when i try to retrieve it i using this {!! !!} nothing shows. how can i print the data from the database back to textarea tag of tinymce the way i design it so that i can redesign it again and again.

edit.blade.php:

<li class="step">
            <div data-step-label="Lesson Layout" class="step-title waves-effect waves-dark">Step 2</div>
            <div class="step-content lesson-editor">
             <div class="row">
               <div class="input-field col s12">
                 <textarea id="mytextarea editor" name="editor" rows="8" cols="80" value=""></textarea>
               </div>
             </div>
             <div class="step-actions">
               <button class="waves-effect waves-dark btn blue next-step" >CONTINUE</button>
               <button class="waves-effect waves-dark btn-flat previous-step">BACK</button>
             </div>
            </div>
          </li>

tinymce script:

selector: "textarea",
      height: '350px',
      plugins: [
          "advlist autolink lists link image charmap print preview hr anchor pagebreak",
          "searchreplace wordcount visualblocks visualchars code fullscreen",
          "insertdatetime media nonbreaking save table contextmenu directionality",
          "emoticons template paste textcolor colorpicker textpattern"
      ],

pardon me for my bad english.
thanks guys!



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2CAFEXd
via IFTTT

Aucun commentaire:

Enregistrer un commentaire