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:
parent
1df648733e
commit
b7d28a3bf6
2 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue