JavaScript disabled when editing with sitecake

I have a script that displays a popup box when an image is clicked. However, when I’m editing with Sitecake and I click the image the popup box doesn’t show and my script is not being ran. Is there any possible work around to this? I would like to be able to open these popups and to be able to edit the content within them with Sitecake.

Thanks,
Andrew

Hi,

there is no easy way at the moment, but if your popup opens iframe you can edit that page directly by accessing http://yourdomain.com/sitecake.php?scpage=name-of-page-you-load-in-iframe.html.
If you are loading content via ajax or inline content, you could take advantage of named containers. There’s an example in Freelancer theme. You can download it from here https://sitecake.com/templates.html.