Add a HTML containter for locked FreeText annotations in order to be able to display a popup (follow-up iof #17070)

This commit is contained in:
Calixte Denizet 2023-10-05 14:01:34 +02:00
parent c4c24c6d18
commit e737638a40
2 changed files with 13 additions and 0 deletions

View file

@ -671,7 +671,14 @@ class AnnotationElement {
}
}
get _isEditable() {
return false;
}
_editOnDoubleClick() {
if (!this._isEditable) {
return;
}
const {
annotationEditorType: mode,
data: { id: editId },
@ -2347,6 +2354,10 @@ class FreeTextAnnotationElement extends AnnotationElement {
return this.container;
}
get _isEditable() {
return this.data.hasOwnCanvas;
}
}
class LineAnnotationElement extends AnnotationElement {