[ASPNET]Save TinyMCE Content

18. January 2011

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);
            });

 

 

ASPNET

Comments

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading