Merge pull request #15275 from calixteman/textbox

[Editor] Remove some a11y properties only useful when a FreeText editor is edited
This commit is contained in:
Jonas Jenwald 2022-08-05 09:36:56 +02:00 committed by GitHub
commit d6d4653d80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -226,6 +226,7 @@ class FreeTextEditor extends AnnotationEditor {
this.parent.setEditingState(false);
this.parent.updateToolbar(AnnotationEditorType.FREETEXT);
super.enableEditMode();
this.enableEditing();
this.overlayDiv.classList.remove("enabled");
this.editorDiv.contentEditable = true;
this.div.draggable = false;
@ -242,6 +243,7 @@ class FreeTextEditor extends AnnotationEditor {
this.parent.setEditingState(true);
super.disableEditMode();
this.disableEditing();
this.overlayDiv.classList.add("enabled");
this.editorDiv.contentEditable = false;
this.div.draggable = true;