Fix CKEditor5 link editing in modal dialog
authorColeman Watts <coleman@civicrm.org>
Thu, 13 May 2021 16:40:23 +0000 (12:40 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 13 May 2021 16:41:41 +0000 (12:41 -0400)
Fixes https://lab.civicrm.org/extensions/ckeditor5/-/issues/4

js/Common.js

index cb3c8d23704d9927abc95dd1938ec4fde536d304..86f02567bff1a571f4fe025105249c44418fc013 100644 (file)
@@ -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