plone/Products.TinyMCE — pull request #33 by davisagli (2012-10-13 23:03:29+00:00)
Title: Simplify how js resources & field configuration are loaded.

Instead of using a viewlet which does a lot of logic to determine what text fields are available and whether they have field-specific configuration, field-specific configuration is now served with the HTML in a data attribute on the textarea. This means that instead of building tiny_mce_gzip.js for each context, we can now build it once on the portal root and cache it.

This has various benefits:
- Fixes some regressions that made the editor fail to initialize if it wasn't associated with a known field.
- Improved cachability
- Less code

Probably of interest to @tomgross @malthe @miohtama among others.

Once this is merged we also need to add an upgrade step to plone.app.upgrade for Plone 4.3, to make sure the update to the jsregistry takes effect when Plone is upgraded.