跳到主要内容

onFocusAnnotation

The function called when an annotation receives focus.

Parameters

NameData typeDescription
annotationTextAnnotationThe annotation that received focus.
window.Asc.plugin.attachEditorEvent("onFocusAnnotation", (data) => {
console.log("Annotation focused:", data.rangeId);
});