2

私は、rangy-core と rangy-selectionsaverestore に依存する textAngular を使用する角度のあるアプリに取り組んでいます。最新の 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)

このエラーは、範囲の初期化中に発生するようです。

これの奇妙な点は、TextAngular デモが Internet Explorer で正常に動作することです。デモと私のアプリケーションの違いの 1 つは、縮小されていない rangy ライブラリを使用していることです。最後に、これらのエラーは Chrome または Firefox では発生しません。

アプリは読み込まれますが (上記のエラーはコンソールの単なる警告だと思います)、textAngular フィールドをクリックすると、次のエラーが表示されます。

オブジェクトはプロパティまたはメソッド 'getSelection' をサポートしていません ファイル: textAngular.js、行: 693、列: 4

これらの問題に対処する textAngular または rangy github には何も見つかりません。以前にこれらの問題に遭遇した人はいますか?

お役に立てれば、アプリケーションへのリンクを投稿できます。

ありがとう!

4

4 に答える 4

1

私はこの同じ問題を抱えていました。提案されたwindow.onloadの修正を試みましたが、textAngularSetupがロードされていないという別のエラーが発生しました。window.onload の修正を取り除き、textAngularSetup.js ファイルを含めました。現在、Chrome と IE で正常に動作しています。そのファイルがデモに含まれていなかったので、私は混乱しています。

于 2015-10-21T17:20:26.187 に答える