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

<script> tag doesn't work because of require command in vue-linkify.min.js

Open nowshad-sust opened this issue 8 years ago • 1 comments

@phanan

nowshad-sust avatar Jul 18 '17 09:07 nowshad-sust

Quick fix without this library:

add:

    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/linkify.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/linkify-element.min.js"></script>

Write this in your js script:

window.Vue.directive('linkified', function (el, binding) {
    linkifyElement(el, binding.value);
});

rklak avatar Jun 11 '18 09:06 rklak