[Editor] Move the comment button just before the delete one
This commit is contained in:
parent
212547e865
commit
f8ea63606c
@ -1078,13 +1078,13 @@ class AnnotationEditor {
|
|||||||
}
|
}
|
||||||
this._editToolbar = new EditorToolbar(this);
|
this._editToolbar = new EditorToolbar(this);
|
||||||
this.div.append(this._editToolbar.render());
|
this.div.append(this._editToolbar.render());
|
||||||
this._editToolbar.addButton("comment", this.addCommentButton());
|
|
||||||
const { toolbarButtons } = this;
|
const { toolbarButtons } = this;
|
||||||
if (toolbarButtons) {
|
if (toolbarButtons) {
|
||||||
for (const [name, tool] of toolbarButtons) {
|
for (const [name, tool] of toolbarButtons) {
|
||||||
await this._editToolbar.addButton(name, tool);
|
await this._editToolbar.addButton(name, tool);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this._editToolbar.addButton("comment", this.addCommentButton());
|
||||||
this._editToolbar.addButton("delete");
|
this._editToolbar.addButton("delete");
|
||||||
|
|
||||||
return this._editToolbar;
|
return this._editToolbar;
|
||||||
|
|||||||
@ -167,7 +167,7 @@ class EditorToolbar {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.#addListenersToElement(button);
|
this.#addListenersToElement(button);
|
||||||
this.#buttons.prepend(button, this.#divider);
|
this.#buttons.append(button, this.#divider);
|
||||||
this.#comment = comment;
|
this.#comment = comment;
|
||||||
comment.toolbar = this;
|
comment.toolbar = this;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user