Skip to content

Commit

Permalink
[Editor] Add a tooltip to the delete button
Browse files Browse the repository at this point in the history
  • Loading branch information
calixteman committed Nov 15, 2023
1 parent 1df6487 commit b7d28a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions l10n/en-US/viewer.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/display/editor/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b7d28a3

Please sign in to comment.