When "Optimize and Minify JavaScript files" is enabled, TinyMCE WYSIWYG rich text editor stops working. Can anyone confirm this? The moment you disable JS optimization and clear cache, TinyMCE works again.

CommentFileSizeAuthor
#17 wysiwyg.png44.12 KBawilliams
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

websites-development.com’s picture

I have the same problem with version 5.x-1.5

webshocker’s picture

i've the same problem, tinyMCE stops working when javascript aggregation is on.

mellenger’s picture

I have the same problem.

mellenger’s picture

I excluded tiny_mce.js and it's all working fine now. thanks!

spiffyd’s picture

How did you exclude tiny_mce.js?

psynaptic’s picture

It doesn't seem this module's fault, at least the 6.x-1.1 version anyway. When I disable this module it's still a problem. I cleared cache, removed the files and turned core's JS aggregation on and it's the same thing. JS is broken on pages where TinyMCE is used.

Also, the 6.x-1.1 version doesn't seem to minify the JS. Is this a known issue or should we open a new one?

spiffyd’s picture

I may have stumbled upon a solution...

Install the latest JS Aggregator DEV version which includes an option to GZIP JS... enable the GZIP and it seems that TinyMCE works fine now (used with WYSIWYG module)!

psynaptic’s picture

I am using TinyMCE via the WYSIWYG API module and have installed the latest 6.x-1.x-dev, after following the instructions in #7 it still doesn't work. I was really hoping it would too!

spiffyd’s picture

Try clearing the cache in performance. Also clear all browser caches. I used Firefox 3

psynaptic’s picture

I did clear the cache on the Performance page, using devel.module and in my browser (Firefox 3). When I visit a page that has TinyMCE on it e.g. node/nid/edit all the JavaScript seems to fail. The collapsible fieldsets turn into text and are not clickable. TinyMCE is not loaded and other theme-based JavaScript I have on that page stops working.

I really don't think it's just restricted to the JavaScript Aggregator as it still happens when I disable this module and turn on the regular JavaScript aggregation from core.

I just wish I could track this one down.

spiffyd’s picture

Try the attachment here and see if it fixes your problem. I'm using this at it works for me...

http://drupal.org/node/287025#comment-1199724

mellenger’s picture

Under performance you can exclude certain files, tinymce is actually in the example under the text box. I didn't need to do the full path, just tiny_mce.js.

RobLoach’s picture

If you use http://drupal.org/project/wysiwyg , it should set TinyMCE as preprocess = FALSE, which will avoid the aggregation for TinyMCE.

bjkeyser’s picture

I have the latest TinyMCE installed, drupal 6.9 and using the WYSIWYG API, the upload image button has disappeared (worked in the previous version). Any thoughts? really tried everything i know how to do.

mikeytown2’s picture

@bjkeyser I had the same problem. Switch over to the 6.2.x Branch of WYSIWYG.
#388146: Won't attach with TinyMCE enabled.

derjochenmeyer’s picture

Priority: Critical » Normal
Status: Active » Closed (works as designed)

Changing priority to "normal".

awilliams’s picture

FileSize
44.12 KB

I have a similar problem and I have tried all the advise on this page but it did not resolve or work. The funny thing is that some form in our site work well on same setting as attached:

But when Optimize JavaScript files is disable all TinyMCE Module form associated with wysiwyg works. Please can someone advise who has workable solution

Firebug reporeted 3 errors;

missing ; before statement
[Break on this error] * jQuery UI Dialog 1.6\n
js_b0e...f00b.js (line 4081)

jQuery is not defined
[Break on this error] jQuery.extend(Drupal.settings, { "base...th": "/CTC/node/add/news-article" });
news-article (line 16)

jQuery is not defined
[Break on this error] })(jQuery);
js_cbc...6267.js (line 223)