Currently the "Add caption" checkbox is checked by default in the edit atom properties of the Atom.

For some sites the off by default option is preferred.

While it can be implemented in JS to turn that off by default, it would be nice to have a checkbox where the user can turn it off on the UI.

Of course it would remain on by default.

Comments

nagy.balint’s picture

Status: Active » Needs review
StatusFileSize
new1.87 KB

This patch will add this functionality.

gifad’s picture

Hi,

Another option would be to set up this option, not at a global level, but for each edit instance;
I did it for the “Alignment” option, which is often a design requirement for a given content type; I've no time to supply a patch now, but implementation is fairly easy : just duplicate code around “data-dnd-context”, replacing by “data-dnd-align” (or “data-dnd-caption” for this issue)

nagy.balint’s picture

Hi!

A patch would be welcome when you have time.

The main question regarding the caption, is whether it is a likely use case that a client would like to specify that for each textarea separately. At least on our sites it is always off by default on all textareas, but maybe there is a situation where only certain textareas should get a caption by default.

Considering this however https://www.drupal.org/node/2425881
Maybe this patch could be committed as is, and then the field settings would just be able to override that global setting where needed.

nagy.balint’s picture

If anyone is against committing this as is as a global setting (with possible future improvement of per field override) let me know.

  • nagy.balint committed c0ea2e8 on 7.x-1.x
    Issue #2500491 by nagy.balint: Provide a checkbox to configure whether...
nagy.balint’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.