[Editor] Remove some a11y properties only useful when a FreeText editor is edited

This commit is contained in:
Calixte Denizet 2022-08-04 15:28:25 +02:00
parent e88c90e898
commit fce83f8656

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;