我正在使用 TinyMCE 作为 CMS 的 HTML 编辑器。
这一直运行良好,表单提交了正确的数据,就像在 Chrome 中一样。它也在 IE 11 中正确显示。但是,如果我使用 IE11 提交表单,浏览器不会从表单发布数据。
检查源代码,隐藏字段不会被输入到文本框中的新数据填充。我找不到这方面的任何信息,而且它发生在多台计算机上。
有没有人对 TinyMCE 有足够的了解,知道问题可能出在哪里?
对于那些不知道的人:
TinyMCE, also known as the Tiny Moxiecode Content Editor, is a platform-independent web-based JavaScript/HTML WYSIWYG editor control, released as open source software under the LGPL by Moxiecode Systems AB. It has the ability to convert HTML textarea fields or other HTML elements to editor instances. It offers HTML formatting tools, like bold, italic, underline, both ordered and unordered lists, different types of alignments, in-line placement of images and videos, etc. It is highly useful for those who want to allow their users to edit HTML documents online. The different options can be configured at the time of integration with a project, which improves the flexibility of a project.
它的工作原理是用 iframe 替换 textarea 字段,为用户提供许多 HTML 编辑控件,并将此数据放入允许提交数据的隐藏文本字段中。
最佳答案
我已经通过降级到 TinyMCE 3 来“修复”IE11 兼容性问题。
关于javascript - TinyMCE 编辑器不更新 IE11 中的隐藏字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27502394/