Index: doc/API_web.md ================================================================== --- doc/API_web.md +++ doc/API_web.md @@ -67,11 +67,11 @@ The node can be a textarea, an editable node or an iframe. The node must have an identifier. Results will be sent with a succession of events at the node. node.addEventListener("GrammalecteResult", function (event) { - if (event.detail.sType && event.detail.sType == "errors") { + if (event.detail.sType && event.detail.sType == "proofreading") { let oResult = event.detail.oResult; // null when the text parsing is finished ... } } Index: gc_lang/fr/webext/content_scripts/init.js ================================================================== --- gc_lang/fr/webext/content_scripts/init.js +++ gc_lang/fr/webext/content_scripts/init.js @@ -407,11 +407,11 @@ oGrammalecte.oGCPanel.stopWaitIcon(); oGrammalecte.oGCPanel.endTimer(); } } else if (oInfo.sDestination && document.getElementById(oInfo.sDestination)) { - const xEvent = new CustomEvent("GrammalecteResult", { detail: JSON.stringify({ sType: "errors", oResult: result, oInfo: oInfo }) }); + const xEvent = new CustomEvent("GrammalecteResult", { detail: JSON.stringify({ sType: "proofreading", oResult: result, oInfo: oInfo }) }); document.getElementById(oInfo.sDestination).dispatchEvent(xEvent); } break; case "parseAndSpellcheck1": if (oInfo.sDestination == "__GrammalectePanel__") {