- Fix: Extension with no placement to be added to end;

for #326 (@sjernigan)
This commit is contained in:
Brett Zamir
2019-03-05 22:19:02 +08:00
parent d7b9cc6309
commit e524ae6174
10 changed files with 11 additions and 9 deletions

View File

@@ -3273,7 +3273,7 @@ editor.init = function () {
if ($(parent).children().eq(btn.position).length) {
$(parent).children().eq(btn.position).before(button);
} else {
$(parent).children().last().before(button);
$(parent).children().last().after(button);
}
} else {
button.appendTo(parent);