[Editor] Edit an existing FreeText annotation in double-clicking on it (bug 1787298)

This commit is contained in:
Calixte Denizet 2023-07-07 15:51:48 +02:00
parent c33e6ceb03
commit 5c5f9af803
8 changed files with 86 additions and 14 deletions

View file

@ -2203,7 +2203,7 @@ class PDFViewer {
/**
* @param {number} mode - AnnotationEditor mode (None, FreeText, Ink, ...)
*/
set annotationEditorMode(mode) {
set annotationEditorMode({ mode, editId = null }) {
if (!this.#annotationEditorUIManager) {
throw new Error(`The AnnotationEditor is not enabled.`);
}
@ -2222,7 +2222,7 @@ class PDFViewer {
mode,
});
this.#annotationEditorUIManager.updateMode(mode);
this.#annotationEditorUIManager.updateMode(mode, editId);
}
// eslint-disable-next-line accessor-pairs