diff --git a/templates/web/prod/index.html.twig b/templates/web/prod/index.html.twig index 9ff35a1669..a4b3ebd286 100644 --- a/templates/web/prod/index.html.twig +++ b/templates/web/prod/index.html.twig @@ -155,6 +155,13 @@ $('body').addClass('{{ cssfile }}'); }); + + // manage focus in a ui dialog + $(document).on('focusin', function(e) { + if ($(event.target).closest(".mce-window").length) { + e.stopImmediatePropagation(); + } + }); {% include "common/templates.html.twig" %} {% endblock %}