We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在vue中我有两个组件使用了Vditor,组件A用的是Vditor.preview,代码如下:
mounted() { Vditor.preview(document.getElementById('vditorPreview'),this.html, { className: 'preview vditor-reset vditor-reset--anchor', hljs: { lineNumber: true, enable: true }, speech: { enable: true, }, anchor: true }) }
打开后报错
Cannot read property 'options' of undefined
另一个组件B用的是编辑模式,代码如下:
mounted() { this.vditor = new Vditor('vditorEdit', { height: 600, tab: '\t', preview:{ delay: 200, } }) }
现在的问题是打开A会报上面的错误,然后我再打开B是正常的,再回去打开A又不报错了,如果再次刷新,还是报错
The text was updated successfully, but these errors were encountered:
b4aa842
请更新到 1.10.7 再试一下
Sorry, something went wrong.
🎨 #14
6f5a1b1
🎨 fix #14
617f826
Vanessa219
No branches or pull requests
在vue中我有两个组件使用了Vditor,组件A用的是Vditor.preview,代码如下:
打开后报错
另一个组件B用的是编辑模式,代码如下:
现在的问题是打开A会报上面的错误,然后我再打开B是正常的,再回去打开A又不报错了,如果再次刷新,还是报错
The text was updated successfully, but these errors were encountered: