[Editor] Add the possibility to create an highlight from the context menu when some text is selected (bug 1867739)

This commit is contained in:
Calixte Denizet 2024-02-21 18:36:07 +01:00
parent 72b8b29147
commit e1f6f5179f
7 changed files with 266 additions and 72 deletions

View file

@ -126,6 +126,14 @@ class Toolbar {
);
}
eventBus._on("showannotationeditorui", ({ mode }) => {
switch (mode) {
case AnnotationEditorType.HIGHLIGHT:
options.editorHighlightButton.click();
break;
}
});
this.reset();
}