Forums

CK-Editor - Can't Embed Images Stored on Server

I'm currently getting an issue when I try to embed images that I've uploaded to the server. When I click into "Browse Server", my images are listed but the thumbnails don't appear and I get a spinning wheel which means I can't select any to embed. I have it working fine locally.

Has anyone got any suggestions on how to resolve this?

We need more details to help you -- are you talking about a web app of yours? If so -- do you see any errors in the logs?

Yes, I've got a web app that makes use of CK-editor to create blog posts in admin. One of the options within CK-editor is to embed an image. I can upload images and these get sent to media/uploads folder however when I come to browse for these images through ck-editor using the browse server option, I can see the images listed but they don't have thumbnails and I get a spinning wheel icon so can't select them for embedding. It just hangs so there is no error recorded in the logs. This works fine locally so was wondering if there is something particular required on python anywhere for this to work?

It looks like a static files mappings problem -- we have a help page on that: https://help.pythonanywhere.com/pages/StaticFiles/.

Thanks pafk, I didn't have the media folder mapped. All sorted now.

Glad to hear that you made it work!