mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-02-10 18:05:06 +08:00
Update event names
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user