From f769689fb6c21d76aa70f4113ba918e45b528576 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 27 Jun 2023 14:19:57 +0200 Subject: [PATCH] Remove some uwaga buttons. --- src/redakcja/static/js/wiki/view_editor_wysiwyg.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/redakcja/static/js/wiki/view_editor_wysiwyg.js b/src/redakcja/static/js/wiki/view_editor_wysiwyg.js index e5b0796b..f3d18fd7 100644 --- a/src/redakcja/static/js/wiki/view_editor_wysiwyg.js +++ b/src/redakcja/static/js/wiki/view_editor_wysiwyg.js @@ -661,7 +661,10 @@ if (!editable.hasClass('active')) { editable.addClass('active').append(button); - if (!editable.is('[x-edit-attribute]')) { + if (!editable.is('[x-edit-attribute]') && + !editable.is('.annotation-inline-box') && + !editable.is('[x-edit-no-format]') + ) { editable.append(uwagaButton); } } -- 2.20.1