Is it possible to use this module with Insert? I can have insert put a class "caption" on the image as it is placed into the wysiwyg text field, but I don't know how to get Image Caption to run the javascript to pull the title text (or, in my case, I switched it to use the Alt text) and make the image caption. I've edited my editor.css file to include an empty .caption class as well...

Comments

geerlingguy’s picture

Hmm... I got it to work with Insert; however, is it possible to display the caption while viewing the page in the editor, for instance, after you click 'Insert,' the caption and the related divs would be added automatically?

ashedryden’s picture

Interested in this functionality, too.

mawosch’s picture

It is already possible. In the Node-Type Insert section there is a input field "Additional CSS classes: " When I put the class there in, it works.

geerlingguy’s picture

Yes, but you don't actually see the caption class applied via javascript in the wysiwyg editor; you need to first save the page, then you'll see the caption...