joachim desarmenien β created an issue.
joachim desarmenien β made their first commit to this issueβs fork.
joachim desarmenien β created an issue.
joachim desarmenien β created an issue.
joachim desarmenien β created an issue.
joachim desarmenien β created an issue.
joachim desarmenien β created an issue.
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
I made a patch
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