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

The new Vue syntax requires to use hyphen for props/emits #1

Open
j0eii opened this issue May 20, 2020 · 3 comments
Open

The new Vue syntax requires to use hyphen for props/emits #1

j0eii opened this issue May 20, 2020 · 3 comments

Comments

@j0eii
Copy link

j0eii commented May 20, 2020

      this.$emit("image-added", file, Editor, cursorLocation, resetUploader);

Which needs the parent to use

@image-added="functionNameHere"

Instead of

@imageAdded

Its not working in newer versions, I tried and fixed myself. Hope this things helps those new comers.

@joshca1
Copy link

joshca1 commented Jun 5, 2020

This works for me as well, thank you.

@KayaOndul
Copy link

thank you @j0eii

@pandisoft
Copy link

I had an issue while trying to use this feature, followed this example
https://github.com/davidroyer/vue2editor-images/blob/master/src/App.vue

It seems that the example is old and uses old event emit name maybe need to updated :)

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

4 participants