Remove some uwaga buttons.
[redakcja.git] / 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);
                         }
                     }