可以使其正常工作,但这是不可取的,因为许多客户端不知道 HTML 是什么。
使用 IE9 的开发者...东西...我发现了一些错误。HTML1114:来自(UNICODE 字节顺序标记)的代码页 unicode 覆盖来自 (11) 的冲突代码页 windows-1252
由文档类型触发< /代码>
我知道这是错误的,我想更改它,但我在这里受到非常严格的限制,并且我无权访问该文档类型呈现的任何位置。
另一件事:这里是extend_valid_elements 的东西:
extended_valid_elements: "SCRIPT[language<JavaScript?JavaScript1.1?JavaScript1.2?JScript?php?VBScript|src|wgtsrc|type<text/javascript?mce-text/javascript?javascript],script[language<JavaScript?JavaScript1.1?JavaScript1.2?JScript?php?VBScript|src|wgtsrc|type<text/javascript?mce-text/javascript?javascript],form[name|method|action|id|target|onsubmit],FORM[name|method|action|id|onclick|target|onsubmit],embed[src|type|wmode|width|height],object[class|id|classid|codebase|width|height]"
如果你发现其中有任何可能导致IE 崩溃的东西,请指出来。如果你能告诉我奇怪的文档类型正在抛弃它,请告诉我,我会问我的雇主他把它埋在哪里...
TL;DR: IE9 在 TinyMCE 3.4.3.2 中删除标签,可能是由于文档类型。
Good evening, first question here!
I've looked and I've looked, and I've found solutions that don't work. My problem is that IE9 (and 8, 7 etc) will strip tags in TinyMCE 3.4.3.2.
I'm afraid my circumstances are a little unique: I'm working with an existing CMS (custom) which is a little outdated, made in Java, and isn't XHTML-friendly. There is a custom plugin that allows you to insert some script code, then surrounds it with CDATA
tags. Essentially:
insertHTML(document.videoForm.myobj.value);
Where insertHTML, well, inserts it where the cursor was. Now, this works fantastically in Chrome, Firefox etc, but fails in IE. After inserting the script via a popup textarea box, then using TinyMCE's built in HTML viewer, the <script>
tags disappear. Putting a <br />
before the script tags makes it work for some reason, but this is undesirable as many clients don't know what HTML is.
Using IE9's developer...thing...I found some errors.HTML1114: Codepage unicode from (UNICODE byte order mark) overrides conflicting codepage windows-1252 from (11)
Triggered by the doctype<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Transitional.dtd">
WHICH IS WRONG, I KNOW, and I want to change it, but I am under quite strict limitations here, and I don't have access to wherever that doctype is rendered.
Another thing: here is the extended_valid_elements thingymajig:
extended_valid_elements: "SCRIPT[language<JavaScript?JavaScript1.1?JavaScript1.2?JScript?php?VBScript|src|wgtsrc|type<text/javascript?mce-text/javascript?javascript],script[language<JavaScript?JavaScript1.1?JavaScript1.2?JScript?php?VBScript|src|wgtsrc|type<text/javascript?mce-text/javascript?javascript],form[name|method|action|id|target|onsubmit],FORM[name|method|action|id|onclick|target|onsubmit],embed[src|type|wmode|width|height],object[class|id|classid|codebase|width|height]"
If you can spot anything in there that could throw IE off, do point it out. If you can tell me that the strange doctype is throwing it off, let me know and I'll ask my employer where he buried that...
TL;DR: IE9 strips tags in TinyMCE 3.4.3.2, possibly due to doctype.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
脚本标签是否自动关闭?如果它们是自关闭脚本标签,那么 IE 将出现问题。
为什么自闭合脚本标签不起作用?
self 的示例结束脚本标签:
IE 兼容格式:
Are the script tags self closing? If they are self closing script tags then IE will have issues.
Why don't self-closing script tags work?
Example of self closing script tag:
IE compatible format:
我认为这与这个问题有关:
为什么 HTML1113:文档模式从 IE9 标准重新启动到 Quirks< /a>
参见那里的解决方案。
I think this is related to this SO question:
Why HTML1113: Document mode restart from IE9 Standards to Quirks
See the solution there.