jQuery and TinyMCE: textarea value doesn't submit -


i using jquery , tinymce submit form, there problem in serialization in textarea value doesn't post.

here code:

<form id="myform" method="post" action="post.php">     <textarea name="question_text" id="question_text" style="width:543px;height:250px;"></textarea> </form> 

language: lang-js

$('#myform').submit(function() {     $.ajax({         type: 'post',         url: $(this).attr('action'),         data: $(this).serialize(),         success: function(data) {             $('#result').fadein('slow');             $('#result').html(data);             $('.loading').hide();         }     })     return false; });  tinymce.init({     // general options     mode : "textareas",     theme : "advanced",      // theme options     theme_advanced_buttons1 : "bold,italic,underline,separator,image,separator,justifyleft,justifycenter,justifyright,jformatselect,fontselect,fontsizeselect,justifyfull,bullist,numlist,undo,redo,styleprops,cite,link,unlink,media,advhr,code,preview",     theme_advanced_buttons2 : "",     theme_advanced_toolbar_location : "top",     theme_advanced_toolbar_align : "left",     theme_advanced_statusbar_location : "bottom",     theme_advanced_resize_horizontal : false,     theme_advanced_resizing : true,     extended_valid_elements :"a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]", }); 

can explain me should change, , why, in order value in text area posted?

before submitting form, call tinymce.triggersave();


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -