带有 Internet Explorer 8/9 的 Editor Ace 不起作用

Editor Ace with Internet Explorer 8/9 does not work

本文关键字:Editor Ace 不起作用 Internet Explorer 带有      更新时间:2023-09-26

我在json模式下使用编辑器Ace,并且在IE8和9上遇到问题。在 Internet Explorer 8 中,我不会直接在第 9 个中工作,我没有加载 json worker 并且我遇到的错误是:"无法加载工人"编辑器启动,但未加载任何验证。我使用的是非冲突版本。https://github.com/ajaxorg/ace-builds我的代码非常简单,如下所示:

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

我尝试使用ie7的版本 https://github.com/ajaxorg/ace-builds/blob/master/demo/ie7.html 示例。但它不起作用。

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

检查在IE版本<10上不起作用,因为它们不支持Web工作者的工作是使用UIWorkerClient请参阅 https://github.com/ajaxorg/ace/issues/2091

在 ie8/7 上不起作用是一个新的回归,请向 https://github.com/ajaxorg/ace/issues 报告