I'm using the scald module for image management. It's working 99% as I'd want it to - but when used with WYSIWYG (ckeditor) I'm having an annoying issue.
The images in this context need captions so I've hooked into the scald templating and changed the output to use and tags.
All fine - except when saved the WYSIWYG / scald seem to add lots of empty
tags between the figure and the figcaption.
Attempting to use the empty paragraph tag module or create my own input filter have failed as they run before scald replaces the atom reference with the actual image output.
Any suggestions on where to hook into scald to be able to influence this markup?