Skip to content
New issue

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

Cannot use plugin with that... #49

Open
niceque opened this issue Apr 7, 2021 · 1 comment
Open

Cannot use plugin with that... #49

niceque opened this issue Apr 7, 2021 · 1 comment

Comments

@niceque
Copy link

niceque commented Apr 7, 2021

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
@awci
Copy link

awci commented May 16, 2022

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants