Gzip tinyMCE
 
Notifications
Clear all

Gzip tinyMCE

5 Posts
2 Users
0 Reactions
5,099 Views
(@demoniavbh)
Posts: 15
Active Member
Topic starter
 

What about a TyniMCE update?
The version in efiction is 2.1.0 and now they have 3.0.9...

πŸ™‚

I tried to install it by myself but as I'm not so much into PHP I ended up messing the header code xDD
So if it's not in this new version, it would be helpful if could tell what should we have to change in case we wanted to install it.

Now I'll go on seeing if everything else is all right πŸ™‚

Thanks a lot for your work... I'll make a donation as soon as I get paid πŸ˜›


 
Posted : 03/06/2008 9:32 am
(@tammy)
Posts: 2577
Member Moderator
 

Download tinyMCE and then replace the files. There's nothing to change in the php.


 
Posted : 04/06/2008 12:02 am
(@demoniavbh)
Posts: 15
Active Member
Topic starter
 

Hummm....I did it and it didn't worked, that's why I asked...
THe main thing is that I downloadad the compressor, and it asks you to change a line in the code

  1.  Copy the tiny_mce_gzip.js and tiny_mce_gzip.jsp to the tiny_mce directory. The same directory that contains the tiny_mce.js file.
  2. Remove the current script tag. <script type="text/javascript" src=""tinymce/jscripts/tiny_mce/tiny_mce.js"></script>"
  3. Add the new new GZip script <script type="text/javascript" src=""tinymce/jscripts/tiny_mce/tiny_mce_gzip.js"></script>."
  4. Add the new GZip initialization call that will tell the compressor what to include in the output. This should be the sum of all and themes, plugins contained on page.

Remember that the tinyMCE_GZ.init call must be placed in it's own script tag.

That would be the tag in this line?

echo "<script language="javascript" type="text/javascript" src="""._BASEDIR."tinymce/jscripts/tiny_mce/tiny_mce.js"></script>[/code"]
To add the other init, should I write a new echo with it and also add the other echo with if(USERUID)  o that not?

Since this script has more things than explained in their wiki http://wiki.moxiecode.com/index.php/TinyMCE:Compressor/JSP 
I'm a bit lost :S

But well, I'll try again and again till it works properly :)

Thanks


 
Posted : 04/06/2008 6:48 am
(@tammy)
Posts: 2577
Member Moderator
 

I split this off from the original topic and am moving it to MOD support.

Change the line you saw from:


echo "<script language="javascript" type="text/javascript" src="""._BASEDIR."tinymce/jscripts/tiny_mce/tiny_mce.js"></script>"

to:


echo "<script language="javascript" type="text/javascript" src="""._BASEDIR."tinymce/jscripts/tiny_mce/tiny_mce_gzip.js"></script>"
tinyMCE_GZ.init({
plugins : 'advhr,advimage,advlink,searchreplace,contextmenu,preview,fullscreen,paste".($current == "adminarea" ? ",codeprotect" : "")."',
themes : 'advanced',
languages : '$language',
disk_cache : true,
debug : false
});

 
Posted : 07/06/2008 1:45 pm
(@demoniavbh)
Posts: 15
Active Member
Topic starter
 

Million thanks <3


 
Posted : 09/06/2008 5:52 pm
Share: