Skip to content

Commit

Permalink
fix(YALB-956): Modals work in CKEditor again
Browse files Browse the repository at this point in the history
  • Loading branch information
dblanken-yale committed Jul 20, 2023
1 parent ae9fb98 commit 14ecdaf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
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);
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ node_layout_form:
theme:
css/layout-builder-browser.css: {}
css/multifield-form.css: { }
js:
js/layout-builder-fix-modals.js: { attributes: { defer: true } }
taxonomy_form:
css:
theme:
Expand Down

0 comments on commit 14ecdaf

Please sign in to comment.