wobsoriano / lexical-vue

An extensible Vue 3 web text-editor based on Lexical.
https://lexical-vue.vercel.app/
MIT License
251 stars 30 forks source link

Is it possible to insert a router-link element? #52

Open Rusinas opened 3 months ago

Rusinas commented 3 months ago

I've been wondering about this one for quite a while now. Regular links will reload the whole page, so I need to figure out a way how to insert a <router-link> element instead of a regular <a> tag. Can it be done somehow? We already can insert whole components using decorators, but what about inline elements?

wobsoriano commented 3 months ago

That's actually an interesting case. Let me do some experiments and I'll get back to you on this.

zswaff commented 3 months ago

At Dart we're using buttons with @click="router.push(...)" to implement this functionality. I can't exactly remember the details from when we set this up but I imagine if RouterLinks had worked easily we would have used that instead.