I love drupal. But I have issues with the TinyMCE module.

Personally, I don't mind using html code to beautify my content. But my non-geek-savvy clients want to be able to wysiwyg.

So I'm really trying to get tinyMCE to work with drupal. I've tried and given up many times in the past attempting to install and run tinyMCE on my drupal sites.

But I really want to get this to work this time.

I'm pretty sure I have followed all the install instructions correctly. I've installed the modules into modules/tinymce and /tinymce. It all seemed to go okay. Even to the point that I'm able to set up tinymce profiles.

However, on text editable pages, there is no editor. But the "disable rich-text" displays, which, when clicked - nothing happens.

Any ideas?

The development site is here:
http://thegreatnessofhumanity.com

Comments

vm’s picture

doesnt sound like you enabled any of the buttons in adminster -> settings -> tinymce

alboyd’s picture

I have enabled some buttons. But clicking "enable rich-text" still does not do anything.

vm’s picture

I just took a look, you are getting a javascript error.

to verify,

you uploaded the tinymce.module to the yoursite/modules/
then you installed the the actual tinymce script in yoursite/modules/tinymce so that you have a folder structure like yoursite/modules/tinymce/tinymce correct ?

did you add any other plugins? that came with tinyMCE?

alboyd’s picture

"you uploaded the tinymce.module to the yoursite/modules/
then you installed the the actual tinymce script in yoursite/modules/tinymce so that you have a folder structure like yoursite/modules/tinymce/tinymce correct ?"

Correct.

"did you add any other plugins? that came with tinyMCE?"

No. Not that I'm aware of.

Maybe I need to hack some code?

vm’s picture

I"ve installed tinymce on multiple sites using drupal 4.7.3 without hacking at anything. it seems to want to work. maybe reuploading all files ? in case something got corrupted somewhere along the way ?

are you using 4.7.3 ? and the 4.7.0 version of the module ?

nothing else looks out of the ordinary in administer -> settings -> tinymce ?

alboyd’s picture

I'm using: Drupal tinymce module 4.7.3 and TinyMCE engine 2.0.6.1

I've removed and re-uploaded the folders - same result.

Bummer!

And no, nothing else looks out of the ordinary in administer -> settings -> tinymce...

Anyone?

nevets’s picture

The javascript error would suggest you have not install tinyMCE or placed in the wrong place. Did you follow these steps from the install.txt file

NOTE: During this installation process you'll be asked to also 
      install the official TinyMCE package from 
      tinymce.moxiecode.com.


1. Place the entire tinymce directory into your Drupal modules/
   directory.

   
2. Download TinyMCE 2.0 from

     http://tinymce.moxiecode.com/

   Remember to uncompress the file and make sure the folder is named
   'tinymce'.

   
3. Place the entire 'tinymce' engine folder inside your modules/tinymce
   directory. So the TinyMCE engine will live in modules/tinymce/tinymce
alboyd’s picture

Yes I followed this. However, now I am confused.

I uploaded the Drupal tinymce module dir into /modules:
/var/www/thegreatnessofhumanity.com/modules/tinymce

Then uploaded the tinyMCE engine from moxie, into /modules/tinymce:
/var/www/thegreatnessofhumanity.com/modules/tinymce/tinymce

Is that correct? Or should I have done this the other way round?

Thanks for the support so far!

thumperstrauss’s picture

Hi there. Which was the correct path? I'm also very confused about this?

K-O-N-G’s picture

I guess this problem is javascript . In your page.tpl.php must have

<head>
  ....
  <?php print $head ?>
  <?php print $styles ?>
  ....
</head>
alboyd’s picture

I'm guessing I'll find that in themes/ ?

Note an earlier discussion on this issue: http://drupal.org/node/87440 and here: http://drupal.org/node/75569

alboyd’s picture

/var/www/thegreatnessofhumanity.com/themes/bluemarine/page.tpl.php

<head>
  <title><?php print $head_title ?></title>
  <?php print $head ?>
  <?php print $styles ?>
  <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle
 Content in IE */ ?> </script>
</head>

There is also a bunch of code below that, but from the above code, can you see any issues?

All I get on editable pages is the "disable rich-text" link - which does nothing.

Any advice?

Cheers

serval-1’s picture

Perhaps you are fiddling around at the moment, but getting the file http://thegreatnessofhumanity.com/modules/tinymce/tinymce/jscripts/tiny_... generates a 404-error. This file is referenced on your site here: <script type="text/javascript" src="/modules/tinymce/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>

Is there a problem with the place of the tinymce code?

alboyd’s picture

Thanks to K-O-N-G'sadvice I installed this package:

"Combopack Tinymce + filemanager(tinyfck) + lightbox(advlink) + embed media"
http://drupal.org/node/89678

See also: http://drupal.org/node/89662

All runs fine now.

Thanks for all assists...

al

StevenSokulski’s picture

What is different about the combo-pack? I understand that it has TinyFCK and Lightbox and filemanager but how does it chance TinyMCE? TinyMCE should function just fine on its own (i.e. be able to be installed outside of a combo pack) I would think.

serval-1’s picture

I have had some troubles with the TinyMCE editor, but now it is all working fine.
What is your problem? Do you have the gz compressor on?

StevenSokulski’s picture

I did not have the compressor on and I added it. I installed it once (with compressor and spellcheck) and could not get the toolbars to appear. I then disabled the module and deleted the TinyMCE folder. After re-uploading I tried without the compressor and then again with the compressor and still nothing.

I do have TinyMCE running in a directory in my modules directory. My modules are kept in modules/contrib to keep the contributed modules seperate from the core download. Would this cause any trouble?

Thanks!

StevenSokulski’s picture

After some fiddling I was able to get the "Disable rich-text" link to appear under my text areas but still no toolbar. Hmm...

serval-1’s picture

Do you have a link where we can view the textarea?

StevenSokulski’s picture

I would be glad to throw up a link, but it seems when I was messing around and removed TinyMCE from my modules/contrib folder and dropped the tinymce database tables now I can't get them back. Apparently when a module has already been running on your system when you enable you again it doesn't re-run the .install file. I tried adding the tables back manually from the 'mysql' section of the .install and the tables went in fine but the site was still telling me those tables were missing. How can I force it to run the .install file again?

vm’s picture

there are a few insertions into the system table that need to be removed.

install the devel.module in the repo. the devel module will allow you to reinstall the tinymce module replacing the tables.

rgs’s picture

Thanks for point to the dev module.

I had similar probems with Tiny as those discussed in the posts above - I just installed dev as recommended, deleted the tables from my database, made sure that tiny moduled was enabled then was able to 'reinstall module' through dev. Access priv's were still there but I had to redo the tiny profiles and I was up and running with no problems.

Did not try the TinyFCK combo fix because there was a very scary comment/acknowledgement at the end of that post that said that fix would open up the site to unauthorized uploads - or something like that.

Drupal is great. Forums are great.

david007’s picture

Thanks man :)
____________________________
Insurance Center

AdrianB’s picture

I had this problem too and it was related to the tiny_mce_gzip.php file. When I added the file the TinyMCE stopped working and only displayed the "disable rich-text". When I removed the file it worked again.

The TinyMCE module manual says this:

6. To boost the performance of TinyMCE, download the "TinyMCE compressor" from:

http://tinymce.moxiecode.com/download.php

Place the tiny_mce_gzip.php file in

modules/tinymce/tinymce/jscripts/tiny_mce

But the read me for TinyMCE Compressor PHP says this:

1. Copy the tiny_mce_gzip.js and tiny_mce_gzip.php 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.

Which way is the correct way? Is the tiny_mce_gzip.js needed or not? Do I need to edit the code as the read me for TinyMCE Compressor PHP says?

Christian Winterhager’s picture

Thank you very much for your detailed decription of this damned problem. Reading through the threads concerning "TinyMCE" i wondered that i was the only one who couldn't install this module and who had this strange error ("disable rich-text").
After removing the compressor-file "tiny_mce_gzip.php" i found the buttons of tinyMCE in my textarea and was glad to use tiny the first time.

But there remains an important task: how to install "TinyMCE compressor"? Did YOU understand (Point 2 above) from which file you have to "Remove the current script tag"? I will do this but i'm not sure which file it is.

Do you have any idea?

Greetings from Christian
http://www.israel-network.de

AdrianB’s picture

No, I don't have any idea, yet.

I was hoping that there was a solution in the TinyMCE module that didn't require me to edit any source code (not that I'm afraid of doing so, but because I assumed others have solved this before since the compressor-file is mentioned).

AdrianB’s picture

While going through the TinyMCE forums over at Moxiecode I found that people where asking the same question over there and one answer was provided:

Drupal TinyMCE module automatically discover compression script and use it.

So I guess that means no editing of code (as I was hoping for). Now I'll just have to figure out what else is causing the problem...

vm’s picture

are you uploading both? the .js file and the gzcompressor file? both files that come with the compressor download need to be uploaded onto your server.

also make sure that your host has gzip enabled. not fure if the compressor file will work without the host haveing gzip.

AdrianB’s picture

Actually, that was my question above: Should I use both files or just the .php one? Because the TinyMCE module manual only mentions the .php one. But now, you answered my question: both files are needed.

I actually have it workning now. I'm pretty sure I've tried both one and two files before, but since then I've reinstalled and changes things. Anyway I'm happy that the gzip is working. But the translation (Swedish in my case) doesn't work right when gzip is enabled, if I remove the gzip files the translation returns. So I'll have to look into that now.

foxtrotcharlie’s picture

I was having a problem after having upgraded to drupal 5 where tinymce was not displaying. Turns out the theme I was using did not have the print $scripts line:

<?php print $head ?>
<?php print $styles ?>
<?php print $scripts ?>

which prevented the calling of the tinymce js.

Charles

www.parkroad.co.za

FableForge’s picture

I had this problem too: the "disable rich text editor" link appeared, but not the actual rich text editor, just the usual plain textarea. By accident, I discovered that if I change the theme to one of the core ones (like "Pushbutton"), the problem dissapeared. I've confirmed it: I only had this error while I was using the "meta" theme.

m1anh’s picture

I am new to drupal and have the same problem!

After reading all the possible solutions, my fix is really silly..

Ensure the permissions of:

"modules/tinymce/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php" is set to CHMOD 755.

I remember reading about CHMOD 755 when installing Drupal. But it slipped my mind.

Hopy this help someone.

Ian