I am running Drupal 5.3. I have tinyMCE 2.1.2 installed. I have followed installation instructions carefully several times. tinyMCE editor will not load, and FireFox reports a javascript error -- tinyMCE not defined. The tinyMCE javascript file is loaded by my pages with the following tag:

<script type="text/javascript" src="/sd/sites/all/modules/drupal-contrib/tinymce/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>

This tag correctly points to the js file. I do have a print $scripts in my page.tpl.php.

The error is triggered by this script:

<script type="text/javascript">
 tinyMCE.init({
 mode : "none",
 theme : "advanced",
 relative_urls : false,
 document_base_url : "/sd/",
 language : "en",
 safari_warning : false,
 entity_encoding : "raw",
 verify_html : false,
 preformatted : false,
 convert_fonts_to_spans : true,
 remove_linebreaks : true,
 apply_source_formatting : true,
 theme_advanced_resize_horizontal : false,
 theme_advanced_resizing_use_cookie : false,
 plugins : "",
 theme_advanced_toolbar_location : "bottom",
 theme_advanced_toolbar_align : "center",
 theme_advanced_path_location : "bottom",
 theme_advanced_resizing : true,
 theme_advanced_blockformats : "p,address,pre,h1,h2,h3,h4,h5,h6",
 content_css : "/sd/themes/sd-garland/style.css",
 elements : "edit-body"
 });

Comments

gemini’s picture

Version: 5.x-1.9-1 » 5.x-1.x-dev

I have the same issue with the current dev version as well. Looks like IE ignores the problem (whatever that is) and everything is working fine, but FF throws the error.

eyecon-1’s picture

Really strange. I am getting the same error BUT it works on the demo site. Drupal 5.5

gemini’s picture

Just updated to 5.5... same error.

eyecon-1’s picture

I may have found a clue. My testbed is my laptop - running Fedora 8.- Apache 2.2/PHP-5.2.4. I have a colo server running CentOS 4.6 - Apache 2.0/PHP 5.1.6. When I uploaded the development site to the server, TinyMCE works perfectly with Firefox. Same browser running on the same laptop.

Of course, this also changes the url from localhost to a FQDN but I doubt that makes a difference. Since I was setting up another VirtualHost on the server, I also included the .htacccess in the conf file but that shouldn't change anything.

witus’s picture

I had the same issue with Mac Firefox 2.0 using http://localhost/drupal/ to access drupal.

When using my local IPs or Safari it works. In this case e.g.:

http://127.0.0.1/drupal/ or http://192.168.1.36./drupal/

pomliane’s picture

Status: Active » Closed (won't fix)

This version of TinyMCE is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.