[Editor] Add a tooltip to the delete button

This commit is contained in:
Calixte Denizet 2023-11-15 10:51:39 +01:00
parent 1df648733e
commit b7d28a3bf6
2 changed files with 3 additions and 0 deletions

View File

@ -323,6 +323,8 @@ pdfjs-editor-ink-button-label = Draw
pdfjs-editor-stamp-button =
.title = Add or edit images
pdfjs-editor-stamp-button-label = Add or edit images
pdfjs-editor-remove-button =
.title = Remove
# Editor Parameters
pdfjs-editor-free-text-color-input = Color

View File

@ -82,6 +82,7 @@ class EditorToolbar {
const button = document.createElement("button");
button.className = "delete";
button.tabIndex = 0;
button.setAttribute("data-l10n-id", "pdfjs-editor-remove-button");
this.#addListenersToElement(button);
button.addEventListener("click", e => {
this.#editor._uiManager.delete();