mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Merge pull request #15244 from calixteman/15241
[Editor] Add an editor in the annotation storage only when it's non-empty (#15241)
This commit is contained in:
commit
ee8fab929c
5 changed files with 34 additions and 3 deletions
|
@ -469,6 +469,8 @@ class InkEditor extends AnnotationEditor {
|
|||
return;
|
||||
}
|
||||
|
||||
super.commit();
|
||||
|
||||
this.isEditing = false;
|
||||
this.disableEditMode();
|
||||
|
||||
|
@ -572,6 +574,8 @@ class InkEditor extends AnnotationEditor {
|
|||
"pointermove",
|
||||
this.#boundCanvasPointermove
|
||||
);
|
||||
|
||||
this.parent.addToAnnotationStorage(this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue