[ASPNET]Save TinyMCE Content

To save the content of TinyMCE in Ajax way. First, we need to execute the following code to dump the content to the textarea html control.

    tinyMCE.activeEditor.save();

Then, get the text content:

    var text = $("#commentEditor").text();

Next, send data back to server:

     $.post("http://localhost:8088/TableTopic/myHandler.han",
             { name: "John", time: "3pm", body: text},
             function (data) {
                  alert("Data:" + data);
            });

 

 

blog comments powered by Disqus