Skip to main content

onParagraphText

The function called when the paragraph text is updated in the document.

Parameters

NameData typeDescription
dataObjectEvent data containing information about the updated paragraph.
window.Asc.plugin.attachEditorEvent("onParagraphText", (data) => {
console.log("Paragraph updated:", data.paragraphId);
data.annotations.forEach(a => {
console.log(`Annotation ${a.id}: ${a.name} at ${a.start} (${a.length} chars)`);
});
});