-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(YALB-956): Modals work in CKEditor again
Using solution proposed from https://www.drupal.org/project/layout_builder_modal/issues/3063834
- Loading branch information
1 parent
299ac57
commit 13ea17d
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
web/profiles/custom/yalesites_profile/modules/custom/ys_core/js/layout-builder-fix-modals.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
(function ($, Drupal) { | ||
orig_allowInteraction = $.ui.dialog.prototype._allowInteraction; | ||
$.ui.dialog.prototype._allowInteraction = function(event) { | ||
if ($(event.target).closest('.cke_dialog').length) { | ||
return true; | ||
} | ||
return orig_allowInteraction.apply(this, arguments); | ||
}; | ||
|
||
})(jQuery, Drupal); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters