decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.93k stars 3.04k forks source link

Image uploading does not work in editor #497

Closed kennedyrose closed 7 years ago

kennedyrose commented 7 years ago

I am able to upload images just fine when I toggle on markdown. But images won't show up at all in the rich text editor after adding them via + -> Image.

If I add them while in the rich text editor and switch over to markdown, it doesn't even show up in markdown. Currently the only way I can add images is in markdown mode.

I'm on macOS, tested with Chrome, Safari, and Firefox.

erquhart commented 7 years ago

I'm seeing this working: https://cms-demo.netlify.com/#/collections/posts/entries/new

What version are you using?

kennedyrose commented 7 years ago

It works for me in that demo, but not when I deploy the default Hugo test drive app from the docs or when I use the code provided from the quick start.

Looks like the unpkg files in the demo are using 0.4.3

erquhart commented 7 years ago

Do you have a public deploy? I can take a look if so.

kennedyrose commented 7 years ago

I do: https://github.com/kennedyrose/kaldi-hugo-cms-template

Thanks!

erquhart commented 7 years ago

@kennedyrose I totally dropped the ball on this one, sorry!!

The issue here is the Kaldi template itself was created around an old CMS implementation that supported multiple media folders, so editing the template images doesn't work. This definitely needs to be addressed, but in the Kaldi template repo: https://github.com/netlify-templates/kaldi-hugo-cms-template, or the Netlify Identity variant: https://github.com/netlify-templates/one-click-hugo-cms