mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
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:
parent
c4c24c6d18
commit
e737638a40
2 changed files with 13 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue