localwiki / localwiki

LocalWiki a grassroots effort to collect, share and open the world's local knowledge.
http://localwiki.org
326 stars 82 forks source link

caption disappears when editing #781

Open DesignsInLight opened 7 years ago

DesignsInLight commented 7 years ago

This is a long-standing bug, but I found a good fail case. If you edit the current version of the Landvale Bridge entry on the Oakland Wiki (https://oaklandwiki.org/Landvale_Bridge/_history/10) then click pretty much anywhere in the text, the caption on the last photo in the entry disappears.

mwanner2 commented 6 years ago

In my experience, whenever this happens, if you click on Source, you'll find an "editor_temp" entry in the image spec. Seems to happen mostly when you add the caption AFTER setting the image size or alignment. I suspect it has to do with the programming behind making "Add a caption" appear and disappear.

mwanner2 commented 6 years ago

And in the example given by DesignsInLight, above, you will find that the last image spec contains <span class="image_caption editor_temp"

If you delete "editor_temp" the caption reappears.