TinyMCE: packing all files instead of loading them dynamically ... is it possible?

I am trying to get TinyMCE to work. I tried this using the usual tiny_mce.js inclusion method and then using tinymce.init (...) and it works. Then I tried tiny_mce.gzip.js + php compressor and it worked, but it was very slow.

Now I am packing my CSS and JS files into one of them, all my files are merged together. In the case of Javascript, they are also minimized.

In both cases, they have a timestamped version of one of the files, so I have URLs, for example:

/script/script.1233454569.js

which redirects to a PHP file that either serves the cached version, or builds the cached version (if necessary) and maintains it. It adds the expiration of the headers and does gzip compression and basically works well.

I want to fit a tiny mce into this mechanism, but it proves pain. Order seems to matter. I currently have:

  • tiny_mce.js
  • myscript.js
  • default_editor.js (from a simple topic)
  • ru.js (ditto)

but it is suitable for "u is undefined", for which I did not find a suitable answer on google. This is really annoying. Anyone have experience with this?

Are any other editors more suitable for packaging, as described above, instead of imposing their own schemas on you (which does not annoy me)?

+5
3

. , GZip, TinyMCE, CSS , . , TinyMCE , JavaScript, , - . FCKEditor , , , , , ( ), , . , , , . , TinyMCE WYSIWYG- MooTools , JavaScript.

, script, TinyMCE , , , . , . , .

+3

TinyMCE script, , :

tiny_mce_src.js ...

if (n.src && /tiny_mce(|_dev|_src|_gzip|_jquery|_prototype).js/.test(n.src)) {

...

if (n.src && /YourFullScriptName.js/.test(n.src)) {

script...

if (n.src && /ullScriptNa/.test(n.src)) {

, baseUrl, , TinyMCE. , - . , tiny_mce.js...

var tinyMCEPreInit = {base : 'tinymce/jscripts/tiny_mce/'};

, . , , Prototype, - _ mce.js, _ mce _ gzip.js script, (), . , .

, ,

,

DJDaveMark

+3

Gzip Fiddler .

, , .

,

0
source

All Articles