220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
|
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
|
-
+
+
|
for (let dErr of aGrammErr) {
let nStart = dErr["nStart"];
let nEnd = dErr["nEnd"];
if (nStart >= nEndLastErr) {
xParagraphNode.appendChild(document.createTextNode(this._purgeTags(sParagraph.slice(nEndLastErr, nStart))));
let xNodeError = document.createElement("b");
if (dErr['sType'] !== 'WORD') {
xNodeError.setAttribute("class", "error " + dErr["sType"]);
xNodeError.setAttribute("class", "error");
xNodeError.textContent = oConverterToExponent.convert(nError.toString()) + sParagraph.slice(nStart, nEnd);
xNodeError.style.backgroundColor = dErr["aColor"];
xParagraphNode.appendChild(xNodeError);
lNodeError.push(this._createNodeGCErrorDescription(xEditor, nError, dErr, iParagraph));
}
else {
xNodeError.setAttribute("class", "error spell");
xNodeError.textContent = oConverterToExponent.convert(nError.toString()) + sParagraph.slice(nStart, nEnd);
xParagraphNode.appendChild(xNodeError);
|