I can not save the ckeditor data in mysql

0

I have read several queries and none of them has helped me save the recompiled data in ckeditor, to get to the point I explain:

Based on the examples, I tied the ckeditor to "textarea" and made this value to enter the database:

<?php $descripcion= mysqli_real_escape_string($con,($_POST['descripcion'])); ?>

in the html:

<textarea class="form-control" style="height:450px;width:560px;" id="descripcion" required name="descripcion" value="descripcion"></textarea>

javascript:

<script src="https://cdn.ckeditor.com/4.7.3/standard/ckeditor.js"></script>
<script> CKEDITOR.replace( 'descripcion' ); </script>

Check the code that generates ckeditor and I saw that the work field is outside the textarea, now here comes the famous question:

Will there be an order in Jquery of the ckeditor so that I can write correctly in the textarea? or Will there be a way to use the ckeditor field so that you can use it to change the values and that you can register it in the mysqli?

I hope you do not bother them with this question.

    
asked by Lenin Morales Rivera 13.10.2017 в 04:26
source

1 answer

0
answered by 13.10.2017 в 08:30