CuBoulder / ucb2021_base

Drupal 9 Base theme for CU Boulder web properties
GNU General Public License v2.0
0 stars 1 forks source link

WYSIWYG Image Captions #147

Closed kevincrafts closed 2 years ago

kevincrafts commented 2 years ago

Editors need the ability to add a visible caption to an image. The caption may contain html such as links, italics, bold, etc. The caption may need to be added to an image that is floated left or right.

image

jcsparks commented 2 years ago

We should talk a little about this one, but I suspect the best way to handle this is to extend the Media Image entity type to include an abstract field that is plain text. That will give the users the option to add a caption to any and all images. We can then overload the default field--media-image template to look for the captions and add it if present.