chmln / vue-wysiwyg

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

Example of vue-wysiwyg with S3 multer or some sort of backend API for images? #102

Open christopher4lis opened 5 years ago

christopher4lis commented 5 years ago

Would be very helpful to have some sort of example showing how to upload images to a backend API—currently searching all over the web for answers.

dinesh-suthar-winchester commented 4 years ago

Hi, I somehow got the solution but it is still buggy at vue level. I have asked question on this but I guess nobody is interested to comment on this topic.

Nice2Work commented 3 years ago

You can make the editor area reactive, read the content, post the content to your API, bring back the new content (for example just a link, replace the content, and be done, this right after you copy/paste an image into the editor. (this is how I did this with another editor, and it works actually really good as it keeps the 'content' small, just add for example: v-on:input="emitInput" to your code