mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Move embed button to the first position in the md toolbar
This commit is contained in:
parent
672f6a78be
commit
0263fb021d
@ -1151,11 +1151,13 @@ define([
|
||||
editor.focus();
|
||||
};
|
||||
for (var k in actions) {
|
||||
$('<button>', {
|
||||
let $b = $('<button>', {
|
||||
'data-type': k,
|
||||
'class': 'pure-button fa ' + actions[k].icon,
|
||||
title: Messages['mdToolbar_' + k] || k
|
||||
}).click(onClick).appendTo($toolbar);
|
||||
}).click(onClick);
|
||||
if (k === "embed") { $toolbar.prepend($b); }
|
||||
else { $toolbar.append($b); }
|
||||
}
|
||||
$('<button>', {
|
||||
'class': 'pure-button fa fa-question cp-markdown-help',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user