From 9a77b19f84929adb74f0f58702dff0c4bb3b6ae0 Mon Sep 17 00:00:00 2001 From: Jeroen Dalsem Date: Tue, 28 May 2024 13:30:12 +0200 Subject: [PATCH] chore: prevent issues with ckeditor in lightbox --- classes/ColdTrick/WidgetManager/Menus.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/classes/ColdTrick/WidgetManager/Menus.php b/classes/ColdTrick/WidgetManager/Menus.php index b883648..d320c66 100644 --- a/classes/ColdTrick/WidgetManager/Menus.php +++ b/classes/ColdTrick/WidgetManager/Menus.php @@ -87,6 +87,9 @@ public static function addWidgetPageEntityMenuItems(\Elgg\Event $event) { 'icon' => 'edit', 'href' => "ajax/form/widget_manager/widget_page?guid={$entity->guid}", 'link_class' => 'elgg-lightbox', + 'data-colorbox-opts' => json_encode([ + 'trapFocus' => false, + ]), ]); return $result;