I'm using Angular-trix rich text editor, It's working fine in all browsers even IE 11
, but It isn't working in IE10
or less.
It's continuously showing following error.
Unable to set property 'trixMutable' of undefined or null reference
HTML
<trix-editor ng-model-options="{updateOn:'blur'}" spellcheck="false" class="trix-content" ng-model="trix" angular-trix trix-initialize="trixInitialize(e, editor);" trix-change="trixChange(e, editor);" trix-selection-change="trixSelectionChange(e, editor);" trix-focus="trixFocus(e, editor);" trix-blur="trixBlur(e, editor);" trix-file-accept="trixFileAccept(e, editor);" trix-attachment-add="trixAttachmentAdd(e, editor);" trix-attachment-remove="trixAttachmentRemove(e, editor);" placeholder="Write something.."></trix-editor>
I can't figureout what's going wrong.
I found this possible duplicate, but unfortunately not working in my case.
I posted same issue on github, but I got no response.
Note: Please open above plunkr in IE10
or Less.
I fixed your error by changing trix to the latest version
0.10.1
. Once you add dataset.js it works like a charm in IE.dataset.js
will avoid the error by adding missing core dependencies in IE.Full fixed code
>> Demo Plunkr
If there is nothing special on
trix.js
I would recommend to swtich to textAngular which seems to be much more solid. I hope this fix will help you to implementtrix.js
into your application.