TinyMCE textarea and post form using ajax

后端 未结 5 1372
抹茶落季
抹茶落季 2020-12-05 19:36

I m using tinyMCE for textareas and POSTing form through AJAX.

But when I m trying to save textarea value, it is taking old values on first click, but it takes updat

5条回答
  •  情话喂你
    2020-12-05 20:18

    Use this instead of tinymce.triggerSave();

    $('#' + 'your_editor_id').html( tinymce.get('your_editor_id').getContent() );
    

提交回复
热议问题