From: Coleman Watts Date: Thu, 13 May 2021 16:40:23 +0000 (-0400) Subject: Fix CKEditor5 link editing in modal dialog X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=dbf67e1e6cf0e08095c7a12cfc54c8aefb9ba30e;p=civicrm-core.git Fix CKEditor5 link editing in modal dialog Fixes https://lab.civicrm.org/extensions/ckeditor5/-/issues/4 --- diff --git a/js/Common.js b/js/Common.js index cb3c8d2370..86f02567bf 100644 --- a/js/Common.js +++ b/js/Common.js @@ -185,7 +185,7 @@ if (!CRM.vars) CRM.vars = {}; // Workaround for https://github.com/ivaynberg/select2/issues/1246 $.ui.dialog.prototype._allowInteraction = function(e) { - return !!$(e.target).closest('.ui-dialog, .ui-datepicker, .select2-drop, .cke_dialog, #civicrm-menu').length; + return !!$(e.target).closest('.ui-dialog, .ui-datepicker, .select2-drop, .cke_dialog, .ck-balloon-panel, #civicrm-menu').length; }; // Implements jQuery hook.prop