Decaffeinate
I'm proposing to remove CofeeScript and convert it to JavaScript, just like Trix.
In some situations I was quite conservative in adopting a more JavaScript style in the code out of insecurities if it would cause the same effect.
This should help make contributing more enjoyable!
Sorry about the radio silence here @brunoprietog. We're very aware of this PR and it's definitely something we want to merge. Thanks for putting it together.
We have competing priorities right now and can only justify spending a few days at a time on this library. So I'm a bit torn between thoroughly reviewing this conversion and implementing some quick features we need in our products (features that would have to be ported into this PR before merging, which I'm happy to help with).
As things are, I think the best way forward is to implement those (small) features and bug fixes so we can cut a new release. And once that's done we can take the time to walk through this, since it touches practically every file in the library.
In the meantime, have you considered re-implementing the JS to remove the use of the __guard__ functions?