Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Media Contextual Crop Embed

52 sites Security covered Drupal 11 · not 10
View on drupal.org

This module allows users to apply specific crops to media when embedding them in content through a wysiwyg editor. It integrates with other contributed modules to provide this functionality.

This module provides a filter for the wysiwyg editor to give the ability to apply a contextual crop to the embed_media plugin.

Requirements

Module Media Contextual Crop API
At leat one of the adapters :

Branches

2.1.x

- for Drupal 11

2.0.x

- for Drupal 10.5.3+
- Fully compatible with Media_contextual_crop 2.0.x release
- Add context in embed media, in order to limit ghost crop & images
- Remove all Drupal 9 compatibilities

1.3.x

- Fix compatibility with view_mode choose in media_embed
- Compatible with 1.2.x branch of media_contextual_crop in order to use core responsive_image

Note for 9.x core and legacy Ckeditor :
I have find a "cleaner" way to manage core media_library change between 9.4 and 9.5 when using legacy Ckeditor.

You need to add a patch specific patch to your main composer.json

For core 9.4 :

"extra": {
  "enable-patching": true,
  "patches": {
    "drupal/core": {
      "mcc_embed": "web/modules/custom/media_contextual_crop_embed/patch/patch_media_lib_9.4.patch"
    }
  }
}

For core 9.5+

"extra": {
  "enable-patching": true,
  "patches": {
    "drupal/core": {
      "mcc_embed": "web/modules/custom/media_contextual_crop_embed/patch/patch_media_lib_9.5+.patch"
    }
  }
}

No need this patch if you using Ck5 or D10.

1.x to 2.x Update process

  1. Use Drupal 10
  2. Upgrade this module to 1.3.3
  3. Upgrade all media_contextual_crop collection modules on the same row to 2.x
  4. Run updates
  5. Carefully read the recommendations on the module media_contextual_crop

how to

You can see an implementation and usage exemple here

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Sep 2025
Latest release
2 weeks ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
2.2.0 Stable 11 Aug 17, 2026
2.1.0 Stable 10–11 Sep 30, 2025
2.0.5 Stable 10–11 Sep 30, 2025