mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +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
|
@ -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
|
||||
|
|
|
@ -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