1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-23 08:38:06 +02:00

[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

@ -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();