Not saved the first time ckeditor. I watched this topic on the forum, I could not figure it out.

I am writing JS code here, I hope it will be enough !:

<script type="text/javascript" language="javascript"> function call() { var msg = $('#formx').serialize(); $.ajax({ type: 'POST', url: 'save.php', data: msg, success: function(data) { $('#save').html(data); }, }); } </script> 
  • For inserting and formatting code on ruSO there are buttons on the toolbar. Need to use them. - Alexey Shimansky
  • Honestly tried, it turned out even worse! - Victor Vasilyev

1 answer 1

the text entered in the editor is in a separate tag. It is necessary before submit to transfer it to your input or textarea. You can extract the text using the method .editor.getData ()