chmln / vue-wysiwyg

A lightweight WYSIWYG HTML editor for Vue.js
https://chmln.github.io/vue-wysiwyg/
MIT License
557 stars 136 forks source link

Config per component #64

Closed shah-newaz closed 6 years ago

shah-newaz commented 6 years ago

Hi! Really appreciate your great work!

I want to configure the editor per component. For example, in different components, my image upload url will vary.

How do I do that? Thanks

dgriego commented 6 years ago

@shah-newaz, you can pass in the options for each component instance

wisywig(v-model='someHtml', :options='{ image: { uploadURL: "http://localhost:9000/upload" } }')