Remove some uwaga buttons.
authorRadek Czajka <rczajka@rczajka.pl>
Tue, 27 Jun 2023 12:19:57 +0000 (14:19 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Tue, 27 Jun 2023 12:19:57 +0000 (14:19 +0200)
src/redakcja/static/js/wiki/view_editor_wysiwyg.js

index e5b0796..f3d18fd 100644 (file)
 
                     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);
                         }
                     }