From ad67c9ab0953158edc9e108e9c2b8921da305add Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Sat, 23 Jul 2016 09:53:23 +1000 Subject: [PATCH] Buttons container has an inner toolbar Consider this when adding new buttons without insertBefore/insertAfter definition Fixes #2194 --- .../formwidgets/markdowneditor/assets/js/markdowneditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/backend/formwidgets/markdowneditor/assets/js/markdowneditor.js b/modules/backend/formwidgets/markdowneditor/assets/js/markdowneditor.js index 56bcba793..33644f27e 100644 --- a/modules/backend/formwidgets/markdowneditor/assets/js/markdowneditor.js +++ b/modules/backend/formwidgets/markdowneditor/assets/js/markdowneditor.js @@ -281,7 +281,7 @@ this.$fixedButtons.append($button) } else { - this.$buttons.append($button) + $('[data-control="toolbar"]', this.$buttons).append($button) } }