[Editor] Add a tooltip to the delete button
This commit is contained in:
parent
1df648733e
commit
b7d28a3bf6
@ -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…
Reference in New Issue
Block a user