mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-07 21:26:45 +02:00
pad_editbar: Move commands up for readability
This commit is contained in:
parent
fda34407f9
commit
a4652d67a0
@ -124,6 +124,7 @@ const syncAnimation = (() => {
|
||||
|
||||
exports.padeditbar = {
|
||||
_editbarPosition: 0,
|
||||
commands: {},
|
||||
dropdowns: [],
|
||||
|
||||
init() {
|
||||
@ -175,7 +176,6 @@ exports.padeditbar = {
|
||||
enable: () => {
|
||||
$('#editbar').addClass('enabledtoolbar').removeClass('disabledtoolbar');
|
||||
},
|
||||
commands: {},
|
||||
registerCommand(cmd, callback) {
|
||||
this.commands[cmd] = callback;
|
||||
return this;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user