I believe I've gotten this latest version installed correctly, but now when going to a create content page it does not appear. The HTML has the link to the javascript and some inline scripts, but it just isn't there.

Comments

grollaz’s picture

Hi, i have the same problem... what we can do?

fotanka’s picture

I have the same problem.

seanm’s picture

I also am not seeing the editor appear at all.

I have installed the tinymce module (5.1 1.x verison of the module) (downloaded, uncompressed to /modules/tinymce, placed engine into modules/tinymce/tinymce) assigned permissions, enabled the module, created a profile for the module.

I am using theme "429 blue" by autothemes.com on drupal 5.1 install, but I have also tried to change to other themes without success.

None of the enabled buttons appear at all, and the only evidence that tinymce editor is installed is the "disable rich text" option at the bottom.

virtualj’s picture

I have the same problem.
I have Drupal 5.1 and I followed all the installation steps but the editor doesn't show up.
When I look in the source code of the webpage there is TinyMCE java code

<script type="text/javascript">
  function mceToggle(id, linkid) {
    element = document.getElementById(id);
    link = document.getElementById(linkid);
    img_assist = document.getElementById('img_assist-link-'+ id);

    if (tinyMCE.getEditorId(element.id) == null) {
      tinyMCE.addMCEControl(element, element.id);
      element.togg = 'on';
      link.innerHTML = 'disable rich-text';
      link.href = "javascript:mceToggle('" +id+ "', '" +linkid+ "');";
      if (img_assist)
        img_assist.innerHTML = '';
      link.blur();
    }
    else {
      tinyMCE.removeMCEControl(tinyMCE.getEditorId(element.id));
      element.togg = 'off';
      link.innerHTML = 'enable rich-text';
      link.href = "javascript:mceToggle('" +id+ "', '" +linkid+ "');";
      if (img_assist)
        img_assist.innerHTML = img_assist_default_link;
      link.blur();
    }
  }
</script>
<script type="text/javascript">
  tinyMCE.init({
    mode : "none",
    theme : "advanced",
    relative_urls : false,
    document_base_url : "/new/",
    language : "en",
    safari_warning : false,
    entity_encoding : "raw",
    verify_html : false,
    preformatted : false,
    convert_fonts_to_styles : false,
    theme_advanced_resize_horizontal : false,
    theme_advanced_resizing_use_cookie : false,
    plugins : "",
    theme_advanced_toolbar_location : "bottom",
    theme_advanced_toolbar_align : "left",
    theme_advanced_path_location : "bottom",
    theme_advanced_resizing : true,
    theme_advanced_blockformats : "p,address,pre,h1,h2,h3,h4,h5,h6",
    elements : "edit-body"
  });
</script>
JPKCom’s picture

Hi, I've got the same problem, too. In Firefox 1.5, 2.0 and MSIE 7.0 I get the javascript error message "Error: tinyMCE is not defined", so I think other scripts or one other script is provoking this error, because the TinyMCE code is shown correct in the source code of my page. I tried to deactivate all other modules that were inserting their own scripts, but it doesn' t helped. I still got the error "Error: tinyMCE is not defined".

On http://tinymce.moxiecode.com/ I saw a thread about this error associated with the use of other scripts. It also said that if you are using "scriptaculous" you should load TinyMCE-JS-File first in order to prevent this error. So it is possible that one of drupal core javascript files e.g. "jquery.js", "textarea.js", ... is causing this problem. I tried to find a way to influence the loading order of script insert with drupal_add_js, but I can' t find it.

Does anybody know a way to influence the sorting of files loaded with drupal_add_js in the html source code of a drupal page? I am very sure this is the solution, because I rebuild a static version of my page with all files even the drupal javascript files in it and when I set the TinyMCE on the first line of my html code, before all the other js-files, everthing was working and there was no longer an error message.

Example (before - with error message / TinyMCE not working):

<script type="text/javascript" src="/intranet/misc/jquery.js"></script>
<script type="text/javascript" src="/intranet/misc/drupal.js"></script>
<script type="text/javascript" src="/intranet/misc/progress.js"></script>
<script type="text/javascript" src="/intranet/misc/upload.js"></script>
<script type="text/javascript" src="/intranet/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/intranet/misc/textarea.js"></script>
<script type="text/javascript" src="/intranet/misc/collapse.js"></script>
<script type="text/javascript" src="/intranet/misc/autocomplete.js"></script>

Example (after - with no error message / TinyMCE working):

<script type="text/javascript" src="/intranet/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/intranet/misc/jquery.js"></script>
<script type="text/javascript" src="/intranet/misc/drupal.js"></script>
<script type="text/javascript" src="/intranet/misc/progress.js"></script>
<script type="text/javascript" src="/intranet/misc/upload.js"></script>
<script type="text/javascript" src="/intranet/misc/textarea.js"></script>
<script type="text/javascript" src="/intranet/misc/collapse.js"></script>
<script type="text/javascript" src="/intranet/misc/autocomplete.js"></script>
robotjox’s picture

me too, me too - help!!!

bacchus101’s picture

Same issue here as well.

canadrian’s picture

Ditto

frost’s picture

yes, i just installed this and although the html source shows the tinymce stuff, i get no sign on it.
i'm using firefox 2.0.0.2 on linux (edubuntu)

frost’s picture

ok, i've sorted mine. a simple oversight in my case:

i was logged in as admin, and assumed that i had full admin rights, but i actually hadn't assigned the admin user to any roles. so despite giving some roles rights to use tinyMCE, admin couldn't use it until i put admin into one of those roles

ffunky’s picture

Guys, my problem was two-fold. First I created a new role w/ tinymce permissions and assigned my admin profile to it. But then I noticed that the editor was working in my admin section and not on the viewer side. My THEME did not support tinyMCE! I changed back to a default theme and it worked!

bdmp’s picture

 I got the same problem.

ethang’s picture

Any ideas on this??? I have two different sites running the same version of Drupal (5.1) and same version of tinymce (5.x-1.x-dev) and using one browser (firefox 2) - one site runs tinymce perfectly and the other won't load tinymce.

The only difference between my two sites:

  • the working site was originally installed with the moxie module, then switched to tinymce
  • the non-working site was installed with tinymce from the start
  • I've checked and rechecked permissions, disabled and enabled the module, tested all the standard themes, run update.php... still no tinymce. I can see lots of tinymce stuff in the page source, but nothing on the page. It appears that many others are having this problem: TinyMCE not shown in node editing pages, Can't see the TinyMCE, Tinymce can not load js on some themes. Any ideas?

ron collins’s picture

i was having the problem where the link to turn off the rich text editor would appear but there the editor itself did not show up. i discovered that there was no js in the source. i checked the theme and the line which should print the scripts variable was not there. i added it, and all is fine. print $scripts (should appear near the print styles or print head)

ron collins’s picture

sorry, that was in page.tpl.php

peterdeitz’s picture

I wasn't expecting the fix to be so easy. Adding the < print scripts > did the trick. Thanks for the suggestion.

kreynen’s picture

Status: Active » Closed (works as designed)

It looks like most of these were theme issues NOT TinyMCE issues. PLEASE post the issue with the theme... or better yet, create a patch for it and harass the theme's designer into updating it. I'm getting WAY too many issues open from people using themes without the print $scripts.

#13 submitted by ethang, you need to install this patch to deal with some table renaming Moxie did. Instead of duplicating the table, they renamed the TinyMCE settings table. Evil.

ron collins’s picture

following this up with theme creators is a good idea but there are a lot of themes out there. getting them all to change will take time.

mentioning the print $scripts issue in the tinymce docs will help most people who will look there first and save you finding this bug re-reported in the future.

ygdrazil’s picture

I have a fresh install. And the error is as all else, but I use the defaul theme. I have tried both in IE 7 and FF2. The TinyMCE sees to be installed and all the rigths are in plase (When i filter users on access to TinyMCE it shows my user.
The page loads with errors in IE and shows an error in line 51:3, error: tinyMCE undefinert.
Code: 0
http:/mypage.com/node/add/page/

I have the print $scripts in my page.tpl.php page.

Can anybody help here?

ygg

ygdrazil’s picture

I have a fresh install. And the error is as all else, but I use the default theme. I have tried both in IE 7 and FF2. The TinyMCE sees to be installed and all the rights are in plase (When i filter users on access to TinyMCE it shows my user.
The page loads with errors in IE and shows an error in line 51:3, error: tinyMCE undefinert.
Code: 0
http:/mypage.com/node/add/page/

I have the print $scripts in my page.tpl.php page.

Can anybody help here?

ygg

Ravan’s picture

So... short troubleshooting checklist of things that might cause this:

1. Check your theme(s) for print $scripts If it is not there, place it on a new line just below print $styles

2. Make sure you placed the /tinymce/... folders directly under /modules/ and not /sites/all/modules/ (which is the 5.1 standard folder for added modules) because it doesn't work there.

3. Retrace your roles/profiles setup (last one is easy to forget!):
- Have you set up at least one extra User Role next to the default ones in Administer>User management>Roles?
- Have you given at least one of those extra roles access to TinyMCE in Administer>User management>Access control?
- Did you create at least one profile in Administer>Site configuration>TinyMCE with at least one role assigned to it?
- And last but not least, have you assigned yourself (or any user) to a role that is assigned in any TinyMCE profile? If you haven't, go (as admin) to Administer>User management>Users and assign at least one user (maybe admin ;) ) to that TinyMCE-enabled role...

4. ... Anyone found other fixes?

grahamshepherd’s picture

I have tried all of that and it still doesn't work for me.

paulb0t’s picture

I was in the same boat, and pulling my hair out over it. The problem in my configuration was the inclusion of the TinyMCE compression scripts. Once I removed them, the editor worked as designed.

jasonbrice’s picture

Hi,

I'm having the same or similar problem, using TinyMCE with the itheme theme.

I ahve gone through all the steps suggested by Ravan, and I'm stuck on a javascript error that is generated when the TinyMCE "enable rich-text" link is clicked:

Line: 2
Char: 80956
Error: 'delta_width' is null or not an object
Code: 0
URL: http://www.mydrupalsite.com/index.php?=node/add/story

Any ideas?

Thanks,
JB

aktxyz’s picture

Ok...this is all in Firefox...

- new too drupal
- fresh 5.1 install
- default theme
- all seems to be working
- downloaded tinymce module (placed in drupal/modules/tinymce)
- downloaded tinymce 2.1.1.1 (placed in drupual/modules/tinymce/tinymce
- activated tinymce
- added a role
- gave role all tinymce permissions
- assigned role to my user
- tried to create a page

NO TINYMCE showed up

- disable rich-text link shows up
- view source shows lots tinymce stuff, including js file

BUT no TINYMCE

- going to bed, things were going so well

amygdala’s picture

#24 submitted by jasonbrice on June 13, 2007 - 20:32
...
I ahve gone through all the steps suggested by Ravan, and I'm stuck on a javascript error that is generated when the TinyMCE "enable rich-text" link is clicked:

Line: 2
Char: 80956
Error: 'delta_width' is null or not an object
Code: 0

me too, only I'm using the default garland theme, and it does have print $scripts; i have checked permissioins & user roles, and all that, and my role has access, and there is a tinnymce profile with my role allowed. the editor doesn't turn up whether or not it is enabled by default, and trying to start it up as disabled & enabling it on the page generates the above error.

php5, drupal 5.1, firefox2/ie7, tinymce 2.1.1.1 ($Revision: 1.90.4.23 $ $Date: 2007/05/06 01:41:35 $); tinymce compression turned off.

The-Rock’s picture

i do all steps properly.. but same problem.. editor dosnt apear on post page.. :(

page.tpl.php have print script code.. i check post page source code there is no script/code related to tinymce.. please help.. i'm using default theme..

gcassie’s picture

I was having the "'delta_width' is null or not an object" problem too, with a pretty plain Drupal install. Turns out some of the files in the tinymce themes were missed by the FTP upload. So you might want to check those folders for completeness on your server if you're having this problem.

Kazona’s picture

Double check that all files have been uploaded. I just re-uploaded my files to be sure, and while I got plenty of overwrite prompts at first, at least 1000kb of the files did NOT prompt an overwrite notice, meaning they hadn't been uploaded yet.

Here's what I suggest:

On your ftp server, go to the modules/tinymce/ location. Upload all the files from the downloaded tinymce module to this location.

Go to the modules/tinymce/tinymce/ location. Upload all the files located in the official tinymce package to this location.

That fixed it for me. Like I said, turned out not all the required files had been properly uploaded. Soon as they were, the tinymce app showed up.

jwalling’s picture

I created a duplicate site as a backup site from a database dump. I installed tinymce on both sites in sites/all/modules/tinymce. I used admin user 1 to test both installations. Neither admin user account had roles assigned. The backup site worked. The main site did not work until I added roles to admin user 1. Quirky! Quirky!

fletchermse’s picture

I'm having the same problem. I have tried all of the recommended solutions, and tinymce fails to appear in Firefox or IE.

spasmody’s picture

I'm having the same problem, despite the complete reinstallation of tinymce. Please help me.

micmac88’s picture

Resolved.
After your install check that this file exist :
/modules/tinymce/tinymce/jscripts/tiny_mce/tiny_mce.js
In my case the error came from a bad install : I used the TynyMCE language package folder instead of the tool folder. http://tinymce.moxiecode.com/download.php

thank's Firebug

kvguser’s picture

the issue explained in great detail and root cause here: http://drupal.org/node/171731