fix #7793 - captions editing should store values in outer figure, rather than caption