Hi!
I created a blog platform. User creates documents inside wysiwyg editor (tinymce).
Very often inside the article users adds links to other articles <a href="/some-other-article">Link</a>
The problem is that the <a> tags reloads the whole app :(
How can I handle it the force <a> to behave like a <nuxt-link>?
Thanks for help in advance,
You need to use nuxt-link not a.
But this will lead you to multiple issues.
I also had the task to use components from API data, but drop that idea. To complicated.
@awronski you may want to take a look at this: https://github.com/nuxt/nuxtjs.org/blob/master/components/HtmlParser.vue
Mostly on addListeners method.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
@awronski you may want to take a look at this: https://github.com/nuxt/nuxtjs.org/blob/master/components/HtmlParser.vue
Mostly on
addListenersmethod.