diff --git a/online-editor.js b/online-editor.js index 7a01f52..2822ab2 100644 --- a/online-editor.js +++ b/online-editor.js @@ -368,6 +368,10 @@ class BesEditor { text.substring(match.offset + match.length) el.textContent = newText BesEditor.clearSingleMistake(editor, el, rect) + // In my opinion, this approach provides the most straightforward solution for repositioning mistakes after a change. + // It maintains reasonable performance as it only checks the block element that has been modified, + // rather than re-evaluating the entire document or a larger set of elements. + editor.proof(el) } // This function clears a single mistake