Managing Images in Drupal
Enable media embed modules
- swap out the default media icon module for the drupal embed media icon module
when you add images to the Text (formatted, long, with summary). you want to have a choice of image sizes for it to display at.
what image size do we need
- wide
- square
- full landscape
- portrait
- enable the built in media modules
- create styles
/admin/config/media/image-styles
- create view modes
/admin/structure/display-modes/view
- go to
/admin/structure/media/manage/image/display/
and set your custom view mode to use your new image style
edit ckeditor
- edit your ckeditor mode
/admin/config/content/formats/
- choose basic html or whatever editor you enabled
- scroll down to
CKEditor 5 plugin settings
and choose media - enable
user can overide default view settings
- scroll down to
embed media
- enable the custom image sizes under ` View modes selectable in the ‘Edit media’ dialog `
This post is licensed under
CC BY 4.0
by the author.