Customising the number of Drupal's TinyMCE buttons

I have recently upgraded the site from Drupal 5 to Drupal 6. This was no simple task given the level of API changes that occurred between releases.

Note to Drupal community: If you want to be taken seriously in the 'enterprise' world you need to be backwards compatible with third-party modules. Forcing everyone to completely rebuild their modules and sites every year is not a viable option.

Anyhow I use the TinyMCE module for writing posts but do not like the default way it takes up half the textarea window with wasted grey space (see below):

To get around this problem edit the modules/tinymce/tinymce.module file and change the line that reads:

$min_btns = 5; // Minimum number of buttons per row.

To something more sensible like:

$min_btns = 30; // Minimum number of buttons per row.

This will give you an editor that is far more space efficient and better looking: