TinyMCE GZip Compressor Ruby on Rails Plugin - Take 2
UPDATE: I've finally added conditional Gzip compression. See TinyMCE GZip Compressor Ruby on Rails Plugin - Take 3 .
After posting in the TinyMCE forums about my GZip Compressor, Spocke let me know that they revamped the other Gzip Compressors, and that I should work off those. I checked it out and the code is a lot cleaner, so I went ahead and refactored.
This time though I went all out and created it as a plugin. It supports caching and gzip compression with one caveat. If you enable caching, then it will always gzip the output. This means that browsers that don't support gzip will break. This shouldn't be an issue since any browser that can run TinyMCE should support gzip.
To install it, extract the plugin to vendor/plugins. The path should look like RAILS_ROOT/vendor/plugins/tiny_mce_gzip.
Add the following line to routes.rb
Let me know if you have any issues, comments or questions.