AJAX表单自动提交TinyMCE fix

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了AJAX表单自动提交TinyMCE fix相关的知识,希望对你有一定的参考价值。

Since tinyMCe doesn't transfer it's editor contents to the text area until you hit the submit button, and since the autosubmitter doesn't ever hit the submit button TinyMCE boxes never save. IT's a simple fix, just place the code on line 2, at the very top of the as function, and it will tell TinyMCE to save. This line should not be there if you don't have TinyMCE integrated in your site as it'll just cause javascript error.

This fix is in reference to this Snipplr: <a href="http://snipplr.com/view/44799/ajax-form-autosubmit/">http://snipplr.com/view/44799/ajax-form-autosubmit/</a>
  1. tinyMCE.triggerSave();

以上是关于AJAX表单自动提交TinyMCE fix的主要内容,如果未能解决你的问题,请参考以下文章

Firefox 上的 tinyMCE 缺少 ajax Post 数据

提交表单时出现tinyMCE错误

无法使用 Symfony2 和 TinyMCE 提交表单

带有 TinyMCE 的文本区域。提交按钮不起作用

Xval 和 Tinymce

Ajax提交表单时验证码自动验证 php后端验证码检测