kolkov / angular-editor

A simple native WYSIWYG editor component for Angular 6 -14+
https://angular-editor.kolkov.ru
MIT License
673 stars 357 forks source link

Image upload not working in demos #43

Open Pastafarian opened 5 years ago

Pastafarian commented 5 years ago

I'm getting the following exception when trying out the image upload functionality.

Cannot read property 'toLowerCase' of undefined

Kind Regards

Steve

kolkov commented 5 years ago

Hi! Yes! There is no backend on demo! Only frontend without mock backend.

Pastafarian commented 5 years ago

Thanks for getting back so quickly. Be good to get an example with a test back-end so can try out image functionality.

I'm just getting something setup on my end to try it out.

From looking at the source code we just need to include 'imageUrl' in the response for the editor to pikc up?

Cheers!

Steve

kolkov commented 5 years ago

Yes! Try to read this issue https://github.com/kolkov/angular-editor/issues/5

shubhamchandak commented 5 years ago

As I can see that when we upload image it sends a post request to store it but what if I only want to save it when we save the whole content of the editor. That could be a good feature as the whole data will be present at one place and there wont be any need to create separate method just to store image.

fhrryDeveloper commented 3 years ago

Hello, @kolkov I need your help I am using your editor now