I have installed the most recent stable versions of Drupal, TinyMCE module and the editor. Permissions and roles are properly set up but the WYSIWYG editor does not work; I get a javascript error: 'tinymce is undefined'.

In addition, in the TinyMCE user profile all of the button icons are broken images. I have checked and rechecked to make sure the directories are in the correct place and the module is properly setup but still unable to use the TinyMCE editor. Any help would be greatly appreciated as I am at my wits end; I have had TinyMCE up and running fine on many other installs but never seen this problem before.

CommentFileSizeAuthor
#1 tinymce_error.jpg228.58 KBhaselwimmer

Comments

haselwimmer’s picture

StatusFileSize
new228.58 KB

See screengrab of the problem attached

alexandreracine’s picture

Could you try in Firefox? Just for fun.

mediameriquat’s picture

Title: TinyMCE not working - 'tinymce is undefined' javascript error in MSIE » Same problem in Firefox!

This problem is not browser-related. I get the same in Firefox.

Besides, I get an error message whenever I access the admin pages:

Could not find the TinyMCE engine installed at modules/contrib/tinymce/tinymce/. Please download TinyMCE, uncompress it and copy the folder into modules/contrib/tinymce.

The admin pages work fine, but I had to recreate a tinymce subfolder, and place a copy of the module in it for the message to stop apprearing.

RayZ’s picture

Title: Same problem in Firefox! » 'tinymce is undefined' javascript error in MSIE / Firefox
mediameriquat’s picture

Title: 'tinymce is undefined' javascript error in MSIE / Firefox » TinyMCE not working - 'tinymce is undefined' javascript error

There seems to be a lot of stuff missing from that tarball ?!

alexandreracine’s picture

Did you setup properly all the files?

I did installed TinyMCE and it is pretty tricky to install.

Read one step, and execute that step, read the next one, execute that next one, rince and repeat.

Your directories shoud look like this :

modules/ajouts/tinymce/
modules/ajouts/tinymce/plugins
modules/ajouts/tinymce/po
modules/ajouts/tinymce/tinymce/
modules/ajouts/tinymce/tinymce/(more here...)

I think this is a bad installation and not a bug in TinyMCE.

pal_ur’s picture

I think the problem is, that tinyMCE.init is _before_ the

witch includes the tiny_mce.js. So only I have to find out, how to put the include higher...
gatiba’s picture

Same problem here:
"tinyMCE is not defined"

Anyone helps?

nawaaz_ahmed’s picture

I am seeing the same too with 5 RC 1

nawaaz_ahmed’s picture

I guess it was my error - I did not copy over tinymce library from sourceforge into the includes directory. It now works - though it seem very unstable. The preview and the text area are not consistent. Modifying the text area and doing a preview is sometimes showing the previous text.

Chill35’s picture

Modifying the text area and doing a preview is sometimes showing the previous text.

You're not alone. Please report this behavior in this other issue : http://drupal.org/node/106167. Thank you.

alexandreracine’s picture

Status: Active » Closed (won't fix)

Cleaning...