Is this a complete replacement for tinymce?

I am currently having problems with the width of tinymce overflowing when the width for my tinymce textarea is small. Thus, I am considering tiny tiny mce.

What are the differences between tinymce and tiny tiny mce? Thanks.

Comments

Steve Lockwood’s picture

Assigned: Unassigned » Steve Lockwood
Status: Active » Fixed

Hi JK,

I wrote it as a simple replacement for tinymce.

In tinynmce you can have many different profiles and assign them to different users. In tinytinymce you have a choice of 2 profiles: simple and advanced.

In tinymce you have a nice user interface which lets you control which buttons are available in each profile but seems a bit tricky to set up. In tinytinymce you also have control over the two profiles, but you do it by directly editing the tinymce init string (arguably this is more flexible but you have to consult the tinymce examples and documentation to know what to do.)

You can control which blocks the editor is available for (in tinytinymce and tinymce, I think).

Both modules suffer from similar issues, which relate to the way tinymce interacts with Drupal:
- Drupal has some javascript which cleverly splits the document body if it contains a !--break-- tag. This completely messes up tinymce. I'm working on a solution to this - basically I need to find a way to disable Drupal's built in javascript.
- I'm not sure if tinytinymce suffers from the "overflow" problem you describe. I think it might be because the tinymce toolbar has so many controls on it that it has a minimum width - you could try reducing the number of controls or rearranging them (which might be easier with tinytinymce because you have direct control over the init string)

I hope this helps - let me know how you get on.

Steve

Steve Lockwood’s picture

Status: Fixed » Closed (fixed)
Jkello’s picture

For the overflow, yup tinytinymce has the same problem also.

Btw, how do I change the icons I want for the simple mode? I can't seem to find where you specified that in the .module file.

Thanks.

Steve Lockwood’s picture

You can change the settings by going into the admin/settings/tinytinymce page.

Here you will see the init scripts for simple and advanced mode, which you can edit (no flashy user interface, though - you directly edit the init script). If you want more than the basics I think you will need to copy the advanced script and paste it over the simple script - you will then be able to remove plugins and buttons from the copied script. http://wiki.moxiecode.com/examples/tinymce/installation_example_00.php also has many examples of init scripts if you want to do something different.

By reducing the size of the toolbars you might be able to do something about the overflow problem.

Steve