mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
[Editor] A pasted FreeText editor was missing when printing/saving
When a FreeText editor is pasted then it hasn't an editorDiv yet when added to the layer, hence it's empty. So this patch just move the call to addToAnnotationStorage to ensure we've what we need.
This commit is contained in:
parent
b985eaa98c
commit
3c8d8f0d02
2 changed files with 22 additions and 1 deletions
|
@ -426,7 +426,6 @@ class AnnotationEditorLayer {
|
|||
*/
|
||||
add(editor) {
|
||||
this.#changeParent(editor);
|
||||
this.addToAnnotationStorage(editor);
|
||||
this.#uiManager.addEditor(editor);
|
||||
this.attach(editor);
|
||||
|
||||
|
@ -438,6 +437,7 @@ class AnnotationEditorLayer {
|
|||
|
||||
this.moveDivInDOM(editor);
|
||||
editor.onceAdded();
|
||||
this.addToAnnotationStorage(editor);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue