iliyaZelenko / tiptap-vuetify

Vuetify editor. Component simplifies integration tiptap editor with vuetify.
https://iliyazelenko.github.io/tiptap-vuetify-demo/
804 stars 126 forks source link

Can't access store in TipTap custom Image component NuxtJS #277

Closed nuolmakara16 closed 3 years ago

nuolmakara16 commented 3 years ago

I was trying to implement custom image upload components which was describe in the tiptap-vuetify document https://www.npmjs.com/package/tiptap-vuetify#custom-image-upload-components in my nuxtjs project. Everything works perfectly until I try to access store using this.$store And it say undefined. Can someone tell me what should I do to access the nuxt store?

MOTA9100 commented 3 years ago

i have same problem, i made file manager component from before, in there i use this.$axios to load files from server. when i want to use my component, and i can not access to $axios

nuolmakara16 commented 3 years ago

@MOTA9100 I actually got this problem solved! I forgot to close!

MOTA9100 commented 3 years ago

@nuolmakara16 what is the solution?

nuolmakara16 commented 3 years ago

@MOTA9100 its not working?

MOTA9100 commented 3 years ago

@nuolmakara16 this is about CkEditor not tiptap-vuetify :|

nuolmakara16 commented 3 years ago

@MOTA9100 I got confused! I thoght I post this on ckiditor!

MOTA9100 commented 3 years ago

we can access to $store, $vuetify, $axios and other modules in custom image component with window.$nuxt.xxx. remember that as before know we can do this just in client side