De-obfuscated version
Hey Mark, it looks like the code is obfuscated/shortened in the main monotype.js. This is great for performance, but really painful when debugging or trying to understand what's going on under the hood.
There are many minifiers out there that can take verbose code and turn it into a tiny version, so I'm wondering if you'd be open to providing a non-minified version of monotype along with an auto-generated monotype.min.js distribution for production usage.
I think that would be extremely helpful for this library, and would boost contributions from others by lowering the learning curve.
Same for me: I wanted to understand what Monotype actually does and how it preserves ranges across edits, but mentally parsing one letter variables is very annoying (so I gave up).
I'm sorry about this, it is on my to do list and I'll bump it up in my priority. I'll have this fixed soon.