Update event names

This commit is contained in:
Ilya Kirillov
2025-11-16 18:11:55 +03:00
parent 326de44452
commit f3ad2097bc

View File

@ -648,15 +648,15 @@ class Provider extends AI.Provider {\n\
spellchecker = new SpellChecker();
grammar = new GrammarChecker();
this.attachEditorEvent("onAnnotateText", function(obj) {
this.attachEditorEvent("onParagraphText", function(obj) {
if (!obj)
return;
console.log("PLUGIN-AI");
console.log(JSON.stringify(obj));
spellchecker.onChangeParagraph(obj["paragraphId"], obj["recalcId"], obj["text"], obj["ranges"]);
grammar.onChangeParagraph(obj["paragraphId"], obj["recalcId"], obj["text"], obj["ranges"]);
spellchecker.onChangeParagraph(obj["paragraphId"], obj["recalcId"], obj["text"], obj["annotations"]);
grammar.onChangeParagraph(obj["paragraphId"], obj["recalcId"], obj["text"], obj["annotations"]);
});
this.attachEditorEvent("onFocusAnnotation", function(obj) {