Index: gc_lang/fr/webext/content_scripts/editor.js ================================================================== --- gc_lang/fr/webext/content_scripts/editor.js +++ gc_lang/fr/webext/content_scripts/editor.js @@ -197,10 +197,11 @@ showError(e); } } loadText (sText) { + // function also used by the text formatter oGrammalecteTextEditor.loadText(sText); this.write(); } write () { @@ -207,11 +208,11 @@ if (!this.bWrite) { return; } for (let [i, sParagraph] of oGrammalecteTextEditor.getParagraphs()) { if (i < this.lNode.length) { - this.lNode[iParagraph].textContent = sParagraph; + this.lNode[i].textContent = sParagraph; } } } clear () {