I'm trying to get TinyMCE to work. I've tried it using the normal method of including tiny_mce.js and then using tinymce.init(...) and it works. I then tried tiny_mce.gzip.js + php compressor and it worked but it was really slow.
Now I already package up my CSS and JS files into one of each with all my files concatenated together. In the case of Javascript they're also minified.
In both cases they're versioned with a timestamp of one of the files so I have URLs like:
/script/script.1233454569.js
which redirects to a PHP file that either serves a cached version or builds the cached version (if necessary) and serves it. It adds expires headers and does gzip compression and basically works well.
I want to fit tiny mce into this mechanism but it's proving painful. Order seems to matter. Currently I have:
- tiny_mce.js
- myscript.js
- default_editor.js (from the simple theme)
- en.js (ditto)
but it's coming up with "u is undefined" for which I could find no suitable answer on google. This is really irritating. Has anyone any experience with this?
Are any other editors more suitable for packaging like I described above rather than forcing their own schemes on you (which annoys me no end)?