Content Pulse: Real-time inline track changes in vanilla JavaScript
I built a lightweight track changes engine for contenteditable editors in vanilla JS. No dependencies, ~400 lines of code. It uses the Myers diff algorithm (same as git diff) to compute the minimal edit script between the original and current text, then renders additions as <ins> and deletions as <del> inline - all inside the same editor. Features: - Word level and letter...