错误在Internet Explorer中初始化Rangy.js [英] Error initializing Rangy.js in Internet Explorer

查看:597
本文介绍了错误在Internet Explorer中初始化Rangy.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用textAngular,它依赖于四肢瘦长核心和四肢瘦长,selectionsaverestore角度应用。我在与最新的IE以下错误:

I'm working on an angular app that uses textAngular, which depends on rangy-core and rangy-selectionsaverestore. I'm having the following errors with the latest IE:

Module 'WrappedSelection' failed to load: Unspecified error.
Error: Unspecified error.
    at Anonymous function (js/plugins/textAngular/rangy-core.js:2970:29)
    at Anonymous function (js/plugins/textAngular/rangy-core.js:2923:14)
    at Anonymous function (js/plugins/textAngular/rangy-core.js:415:21)
    at Module.prototype.init (js/plugins/textAngular/rangy-core.js:387:13)
    at init (js/plugins/textAngular/rangy-core.js:294:17)
    at loadHandler (js/plugins/textAngular/rangy-core.js:3825:17)

Module 'SaveRestore' failed to load: Unable to get property 'isDirectionBackward' of undefined or null reference
TypeError: Unable to get property 'isDirectionBackward' of undefined or null reference
    at Anonymous function (js/plugins/textAngular/rangy-selectionsaverestore.js:30:9)
    at Anonymous function (js/plugins/textAngular/rangy-core.js:415:21)
    at Module.prototype.init (js/plugins/textAngular/rangy-core.js:387:13)
    at init (js/plugins/textAngular/rangy-core.js:294:17)
    at loadHandler (js/plugins/textAngular/rangy-core.js:3825:17)

这个错误似乎四肢瘦长初始化过程中发生的。

This error seems to happen during rangy initialization.

什么是古怪,这是该TextAngular演示工作正常的Internet Explorer。演示和我的应用程序之间的一个不同的是,我使用的unminified瘦长库。最后,这些错误不会发生在Chrome或Firefox浏览器。

What is odd about this is that the TextAngular demo works fine on Internet Explorer. One different between the demo and my application is that I'm using the unminified rangy library. Finally, these errors do not happen on Chrome or Firefox.

虽然应用程序加载(我觉得上面的错误是在控制台只是警告),当我点击进入textAngular领域,我看到以下错误:

Although the app loads (I think the errors above are just warnings in the console), when I click into the textAngular field, I see the following error:

对象不支持属性或方法getSelection
文件:textAngular.js,线:693,列:4

Object doesn't support property or method 'getSelection' File: textAngular.js, Line: 693, Column: 4

我找不到在textAngular东西或解决这些问题的瘦长github上。有没有人遇到过这些问题?

I can't find anything in the textAngular or rangy github that addresses these problems. Has anybody encountered these issues before?

如果有帮助,我可以链接到我们的应用程序。

If it helps, I can post the link to our application.

谢谢!

推荐答案

我有同样的问题。我试图在window.onload弄不好建议,但它只是让我约textAngularSetup没有被加载另一个错误。我把在window.onload修复并包含在textAngularSetup.js文件。现在是工作在Chrome和IE的罚款。我很困惑,因为我没有看到包含在演示该文件。

I was having this same issue. I tried the window.onload fix suggested but it just got me to another error about textAngularSetup not being loaded. I took the window.onload fix out and included the textAngularSetup.js file. It now is working fine in Chrome and IE. I am confused because I didn't see that file included in the demo.

这篇关于错误在Internet Explorer中初始化Rangy.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆