Trix: Broken in Win 7/IE10: Unable to set property 'trixSelection' of undefined or null reference

Created on 2 Feb 2016  路  6Comments  路  Source: basecamp/trix

Check out this screenshot from browser stack.

This issue arises on trix-editor.org, as well as the locally hosted version of trix we use on our site. The console message is as follows:

SCRIPT5007: Unable to set property 'trixSelection' of undefined or null reference trix.js, line 20 character 22130

Most helpful comment

The JS on my app is not working anymore because of this issue when opened with IE 10 or lower. I understand that supporting IE10 is out of question, but it would be great if trix just did nothing if opened in an unsupported Browser, instead of causing an error.

All 6 comments

Nevermind -- just saw that you don't support IE10, which is a bummer. We love your plugin, but our business still requires support down to IE9.

The error can be fixed by adding a dataset polyfill - https://github.com/remy/polyfills/blob/master/dataset.js

This doesn't actually make Trix work on IE10 (outside of basic input) but you can load the script without it failing which may be useful for some.

@javan Do you have a high-level idea of what might be needed to support IE10? That's the only thing keeping me from using Trix, and I may try tackling IE10 support if it's not too much work.

@jdrorrer I'm honestly not sure. @tedtate's comment above is a good starting point. Trix will never officially support IE10 so adding polyfills to your app is the safest route.

@javan okay, thanks!

The JS on my app is not working anymore because of this issue when opened with IE 10 or lower. I understand that supporting IE10 is out of question, but it would be great if trix just did nothing if opened in an unsupported Browser, instead of causing an error.

Was this page helpful?
0 / 5 - 0 ratings