CodeMirror's document representation

from blog marijnhaverbeke.nl/blog, | ↗ original
This post is part of an ongoing series of articles that aim to document the internals of the CodeMirror code editor. I will use the cm-internals tag to distinguish these posts—if you intend to hack on CodeMirror, it might be worthwhile to see what else is there. The problem The initial implementation of CodeMirror 2 represented the document as a...