不知道哪位大侠用过jquery版的tinymce编辑器,发现一个问题,当输入值后无法获取文本框的值内容,请教各位大侠,谢谢!

解决方案 »

  1.   

    不是
     <script src="tiny_mce/tiny_mce_src.js" type="text/javascript"></script>    <script language="javascript" type="text/javascript">
            tinyMCE.init({
                mode: "exact",
                elements: "msgContent",
                editor_selector: "mceEditor",
                theme: "advanced",
                plugins: "safari,pagebreak,style,advhr,advimage,advlink,iespell,insertdatetime,preview,searchreplace,contextmenu,paste,directionality,noneditable,visualchars,nonbreaking,xhtmlxtras,inlinepopups",
                // Theme options
                theme_advanced_buttons1: "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,outdent,indent,blockquote,|,forecolor,backcolor,|,link,unlink,anchor,cleanup,|,syntaxhl,preview",
                theme_advanced_buttons2: "",
                theme_advanced_buttons3: "",
                theme_advanced_buttons4: "",
                theme_advanced_toolbar_location: "top",
                theme_advanced_toolbar_align: "left",
                theme_advanced_statusbar_location: "bottom",
                theme_advanced_resizing: true,
                remove_linebreaks: false,
                extended_valid_elements: "textarea[cols|rows|disabled|name|readonly|class]",
                content_css: "tiny_mce/themes/simple/skins/o2k7/content.css",
                language: "zh"
            });
    </script> <textarea name="msgContent" id="msgContent" style="height: 105px; width: 666px" cols="20"
                        rows="1"></textarea>
      

  2.   

    呵呵,已经解决了,加入以下代码即可,唉,还是英文文档管用啊
    tinyMCE.triggerSave(true, true);
    感谢各位大侠