Drupal is a registered trademark of Dries Buytaert
cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)!

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

Activity

Total releases
2
First release
Sep 2025
Latest release
8 months ago
Release cadence
0 days
Stability
100% stable

Releases

Version Type Release date
2.1.0 Stable Sep 30, 2025
2.0.5 Stable Sep 30, 2025