How to edit hidden js tabs

#1

Thanks Nik…
Just sorting my site out and all going well apart from one thing.
I have a site with tabbed items…
Tabs with text and text lists are fine to edit.
I have a problem with images in the tabs…
I can see them on the site but when I open the editor they are not there?
I have added a new image in the tab and it shows… then I publish and it disappears again. After 2 re-loading of the image I published and looked at the code…
The initial images are being wet to width=0% and when I add a new image it shows but again when I publish it disappers…
Here is a snippet of the code: The first one is the latest, 2 and 3 are the ones that have been set to width=0% each time I load again… WEIRD… I have even tried to add the code of the first image below and when uploaded it is their but when editing it has gone back to 0% width?

#2

Mike,

If image parent is not visible, Sitecake sets image width to 0%. You should disable tab functionality in edit mode.

Please use this script to detect edit mode and keep your tabs open.
https://sitecake.com/docs/using-javascript.html

Nikola