Closed loktarjugg closed 7 years ago
vue.js already supports the use of plugins like jQuery. I guess you are looking for a vue.js directive?
In that case you could make a vue.js directive using the following code:
Vue.directive('inline-attachment', function (el, binding) {
inlineAttachment.editors.input.attachToInput(el);
})
then use it like this:
<textarea inline-attachment></textarea>
Note that i haven't tested this code myself.
I use it like that
When i paste a image , browser throw the bug :
Are you sure that you are binding it to a textarea
? If you can provide a jsfiddle example then maybe i can help you.
@loktarjugg I am new to vuejs. Can you please guide me how you put this inline attachment as vue directive. I am facing similar issue to integrate this inline attachment with vue-simplemde v1.0.4
Thanks.
Would you plan to support vue.js? @Rovak