【发布时间】:2017-05-10 15:50:55
【问题描述】:
我正在使用Angular-trix 富文本编辑器,它在所有浏览器甚至IE 11 中都可以正常工作,但在IE10 或更低版本中无法正常工作。
一直显示以下错误。
无法设置未定义或空引用的属性“trixMutable”
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>
我不知道出了什么问题。
我找到了这个possible duplicate,但很遗憾在我的情况下不起作用。
我在github 上发布了同样的问题,但没有得到回复。
注意:请在IE10或以下打开plunkr。
【问题讨论】:
-
控制台有错误吗?
-
是的!我已经提到过。
-
trixMutable 你在哪里定义的?
-
我没有在任何地方定义这个变量
trixMutable -
那你的变量是未定义的还是空引用怎么来的?
标签: html css angularjs internet-explorer-10 angular-trix