πŸ‡«πŸ‡·France @joachim desarmenien

Bordeaux
Account created on 25 March 2008, almost 17 years ago
#

Merge Requests

More

Recent comments

πŸ‡«πŸ‡·France joachim desarmenien Bordeaux

Hello the issue ti make it work with media is here : https://www.drupal.org/project/cocoen_beforeafter/issues/3312086 ✨ Support for media Needs work

πŸ‡«πŸ‡·France joachim desarmenien Bordeaux

What do you think about replacing

(function($, Drupal, once) {
  Drupal.behaviors.beforeafter = {
    attach: function(context, settings) {
      once('.cocoen-beforeafter-container', context).cocoen();
    }
  }
})(jQuery, Drupal, once);

with

(function($, Drupal) {
  Drupal.behaviors.beforeafter = {
    attach: function(context) {
      once('cocoen', '.cocoen-beforeafter-container', context).forEach(function (element) {
          $(element).cocoen();
      });
    }
  }
})(jQuery, Drupal);

in cocoen_beforeafter.js

Production build 0.71.5 2024