TinyMCE textarea and post form using ajax

后端 未结 5 1376
抹茶落季
抹茶落季 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:05

    @Dan Malcom,

    I noticed that when you type something in one of the boxes, then press the "show text values" button, then if you click the "Undo" arrow, it just keeps the already displayed text, not the new text caused by the "Undo". I discovered it while trying to use your example to check that the texteditor had something in it.

    In my example if I type something in it, then do "Undo" it removes the text in it, but the form still submits.

    See example here:

    enter code here
    

    https://codepen.io/speedygonzales77/pen/bzMrqB

    enter code here
    

提交回复
热议问题