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.
We just need the possibility to set caption as standard, in some kind.
Say a class to like .no-caption to set it offf when stadard is yes e.g. for a content type. And the .caption class to set it on when standard is off.
Comments
Comment #1
davidwhthomas CreditAttribution: davidwhthomas commentedTo re-phrase, you mean new default config settings
1. caption all images or
2. caption only images with the "caption" class ?
Option 1 would probably need to be restricted to the main content area or could interfere with the theme.
I could see it becoming problematic to mark images not to caption.
Interesting though.
Comment #2
reinis.berzins CreditAttribution: reinis.berzins commentedThis solution works well for TinyMCE editor. Open the following file: 0:/public_html/sites/all/libraries/tinymce/jscripts/tiny_mce/plugins/advimage/js/image.js and add a single line to it (around line No.180):
Although the selected class="caption" doesn't appear as selected on the insert/edit image dialogue, still every image inserted into textarea via tinyMCE editor gets automatic class="caption".
Comment #3
rooby CreditAttribution: rooby commentedI agree, I would like an option to 'caption all images' and then use whether or not the image has a title attribute as whether or not it has a caption.
Having to add classes is clunkly and unnecessary.
Comment #4
rooby CreditAttribution: rooby commentedAlso, in terms of marking images as no-caption, that is unnecessary too, just leave the title attribute empty and the image will be skipped over when captioning.