简体   繁体   English

带有Internet Explorer 8/9的Editor Ace无法正常工作

[英]Editor Ace with Internet Explorer 8/9 does not work

I'm using the Editor Ace in json mode and have problems with IE8 and 9. In internet explorer 8 will not work directly in the 9th I do not load the json worker and error that I have is: "Could not load worker" The editor starts but no validations are loaded. 我在json模式下使用Editor Ace,并且IE8和9出现问题。在Internet Explorer 8中,第9个将无法直接工作。我没有加载json worker,而我遇到的错误是:“无法加载worker”。编辑器启动,但未加载任何验证。 I am using the non-conflict version. 我正在使用非冲突版本。 https://github.com/ajaxorg/ace-builds My code is very simple and is as follows: https://github.com/ajaxorg/ace-builds我的代码非常简单,如下所示:

var editor = ace.edit("json-div");
editor.setTheme("ace/theme/github");
editor.getSession().setMode("ace/mode/json");

I tried using the version for ie7 with https://github.com/ajaxorg/ace-builds/blob/master/demo/ie7.html example. 我尝试使用带有https://github.com/ajaxorg/ace-builds/blob/master/demo/ie7.html示例的ie7版本。 But it does not work. 但这行不通。

ace.require("ace/ext/old_ie");
var editor = ace.edit("xml-div");
editor.setTheme("ace/theme/github");
editor.getSession().setMode("ace/mode/json");

Syntax checking doesn't work on IE versions < 10 because they do not support webworkers the workaraound is to use UIWorkerClient see https://github.com/ajaxorg/ace/issues/2091 语法检查不适用于<10版本的IE版本,因为它们不支持Webworkers,工作方法是使用UIWorkerClient,请参见https://github.com/ajaxorg/ace/issues/2091

Not working on ie8/7 is a new regression, please report it to https://github.com/ajaxorg/ace/issues 无法在ie8 / 7上运行是新的回归,请向https://github.com/ajaxorg/ace/issues报告

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM