I am currently upgrading a site from 4.7 to 5 and upgrading TinyMCE along with it. It has worked nicely in 4.7 and I use TinyMCE on all other Drupal 5 sites I create with no problems. I have downloaded and installed the latest module and the latest js-code from Moxie.

But this upgraded site keeps on telling me that "tinyMCE is not defined" in a JavaScript-error when the editor is supposed to be loaded. There is very little information on this error code anywhere on the web.

The site is multilingual, and somewhere it was indicated that this might be a problem. I get the error no matter what language I choose.

The installation and configuration of TinyMCE was flawless, and everything seems to work except the loading of the editor itself.

I have also tried replacing the fresh TinyMCE with a working version from an existing site, but to no avail. The problem seems to lie outside TinyMCE and the module.

Anybody have any idea what's happening?

Martin

Comments

vertikal.dk’s picture

Title: Javascript-error: tinyMCE is not defined » Solved: Javascript-error: tinyMCE is not defined

I solved the problem myself. When upgrading from 4.7 to 5 I had just transferred the home brewed theme that I used unmodified. It was missing a line that includes the scripts in the top of page.tpl. I inserted the line

print $scripts

in the top and everything is now dandy.

I will go through the Garland page.tpl and compare with my own page.tpl (based on some other 4.7 theme) and see if other parts may be missing,

Martin

sun’s picture

Title: Solved: Javascript-error: tinyMCE is not defined » Javascript-error: tinyMCE is not defined
Status: Active » Fixed
Anonymous’s picture

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

Thanks man, worked like a charm to me too.