markdown-it-vue icon indicating copy to clipboard operation
markdown-it-vue copied to clipboard

Cannot use plugin with that...

Open niceque opened this issue 4 years ago • 1 comments

Just setted up a ref with component made .use(html5media) plugin for video/audio support in mounted() {} but nothig works, where i need to declare use?

Uncaught TypeError: Cannot read property 'apply' of undefined
    at b.use (markdown-it-vue-light.umd.min.js?eb52:1)
    at VueComponent.use (markdown-it-vue-light.umd.min.js?eb52:6)
    at <anonymous>:1:70

niceque avatar Apr 07 '21 13:04 niceque

Can you pls share the mounted part that you use the use? The below code is working

mounted() {
....
this.$refs.markdownView.use(html5media)
}
``` 

awci avatar May 16 '22 11:05 awci