Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
geerlingguy CreditAttribution: geerlingguy commentedHmm... 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?
Comment #2
ashedryden CreditAttribution: ashedryden commentedInterested in this functionality, too.
Comment #3
mawosch CreditAttribution: mawosch commentedIt 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.
Comment #4
geerlingguy CreditAttribution: geerlingguy commentedYes, 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...