Jump to content


- - - - -

Make Tinymce Load Faster In 0.6.1 Rtm


  • You cannot reply to this topic
3 replies to this topic

#1 grandpa

    Etomite Forum Newbie

  • Member
  • 12 posts

Posted 07 February 2006 - 05:22 AM

Didn't see another post on the subject, so decided to log it here. Instructions below:

Instructions:
1. Visit http://tinymce.moxiecode.com/download.php.
2. Download PHP version of the TinyMCE compressor download.
3. Copy tiny_mce_gzip.php into /manager/media/tinymce/jscripts/tiny_mce/
4. Edit /manager/actions/dynamic/mutate_content.dynamic.action.php from this:

<script type="text/javascript" src="./media/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
to this:

 <script type="text/javascript" src="./media/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php"></script>

Commentary:
That should be it. Personally, when I load my TinyMCE editor, I can barely see the "Please Wait While Etomite Loads The Page" image flash on the screen. Of course, I own my own personal server, so that's got to count for something with speed. :) Still, it seems to load faster than it did. Hope this helps anybody else who was bogged down by slow loading times.

Testing:
System tested: Linux Server running Slackware, PHP 4.3.11, MySQL 4.0.24, Apache 1.3.33.
Browsers tested: IE6, Firefox 1.0.7

#2 grandpa

    Etomite Forum Newbie

  • Member
  • 12 posts

Posted 07 February 2006 - 10:23 AM

Update:
On second thought, you may want to hold off. The way the code is set up now, I started getting weird errors in my HTML output. For instance, a table wouldn't center after I told it repeatedly to center. I think it may be a plugin issue...

Will keep you posted.

#3 grandpa

    Etomite Forum Newbie

  • Member
  • 12 posts

Posted 07 February 2006 - 10:34 AM

Figured it out. Had the inline_styles option set in the config. This makes TinyMCE write the code as style="text-align:center" instead of <table align="center">.

Anyway, it's still pretty fast, even after I put some more cleanup options in the tinymce init script. :)

#4 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 07 February 2006 - 02:22 PM

I don't think this option has been posted but I did have several users attempt using that compressed file in an effort to track down TinyMCE related problems... Using the optional file definitely speeds up editor load times...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users