vue-linkify icon indicating copy to clipboard operation
vue-linkify copied to clipboard

Does this plugin can work with SSR?

Open applecat opened this issue 7 years ago • 1 comments

I tried this plugin with Nuxt.js. Everything works fine except SSR - plugin works only on client side. Can vue-linkify prepare HTML on server side? Thanx.

plugins/vue-linkify.js:

import Vue from 'vue'
import linkify from 'vue-linkify'
Vue.directive('linkified', linkify)

template:

<p v-html="studio.text" v-linkified:options="{ nl2br: true }"></p>

applecat avatar Oct 26 '17 13:10 applecat

I've written a Vue component for Linkify which works for SSR also. It can be found in the fork mentioned in this Issue: https://github.com/SoapBox/linkifyjs/issues/232

2xAA avatar Apr 18 '18 21:04 2xAA