Currently, I am developing an angular application that utilizes textAngular along with rangy-core and rangy-selectionsaverestore. However, I am encountering some errors specifically on the latest version of Internet Explorer:
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)
The issue appears to occur during the initialization of rangy.
An interesting observation is that the TextAngular demo functions smoothly on Internet Explorer. One potential difference between the demo and my project is that I am utilizing the unminified rangy library. Furthermore, these errors do not arise when using Chrome or Firefox.
Despite the application being able to load (with the errors potentially being just warnings in the console), upon interacting with the textAngular field, I encounter the following error:
Object doesn't support property or method 'getSelection' File: textAngular.js, Line: 693, Column: 4
I have scoured through the textAngular and rangy GitHub repositories but found no solutions to address these issues. Have any of you experienced similar challenges before?
If needed, I can share the link to our application for further insight.
Thank you!