mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
[Editor] Make sure the alt-text button is there when pasting an image from an other tab
This commit is contained in:
parent
6bb6ce6a5d
commit
0f8dda1af0
2 changed files with 37 additions and 1 deletions
|
@ -265,6 +265,8 @@ class StampEditor extends AnnotationEditor {
|
|||
super.render();
|
||||
this.div.hidden = true;
|
||||
|
||||
this.addAltTextButton();
|
||||
|
||||
if (this.#bitmap) {
|
||||
this.#createCanvas();
|
||||
} else {
|
||||
|
@ -329,7 +331,6 @@ class StampEditor extends AnnotationEditor {
|
|||
this._reportTelemetry({
|
||||
action: "inserted_image",
|
||||
});
|
||||
this.addAltTextButton();
|
||||
if (this.#bitmapFileName) {
|
||||
canvas.setAttribute("aria-label", this.#bitmapFileName);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue