From: Radek Czajka Date: Tue, 5 Aug 2025 09:56:53 +0000 (+0200) Subject: Fix button multiplication issue. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/c0f614854cf883800a813cac3703fcc875b0b098 Fix button multiplication issue. --- diff --git a/src/redakcja/static/js/wiki/view_editor_wysiwyg.js b/src/redakcja/static/js/wiki/view_editor_wysiwyg.js index bc498ce1..219b405a 100644 --- a/src/redakcja/static/js/wiki/view_editor_wysiwyg.js +++ b/src/redakcja/static/js/wiki/view_editor_wysiwyg.js @@ -654,8 +654,9 @@ $('.active', element).not(editable).removeClass('active').children('.html-editarea-toolbar').remove(); if (!editable.hasClass('active')) { - editable.append($("
")); - var buttonSpace = $('.html-editarea-toolbar-left', editable); + var toolbar = $("
") + editable.append(toolbar); + var buttonSpace = $('.html-editarea-toolbar-left', toolbar); editable.addClass('active'); buttonSpace.append(button); if (!editable.is('[x-edit-attribute]') &&