Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#17 | wysiwyg.png | 44.12 KB | awilliams |
Comments
Comment #1
websites-development.com CreditAttribution: websites-development.com commentedI have the same problem with version 5.x-1.5
Comment #2
webshocker CreditAttribution: webshocker commentedi've the same problem, tinyMCE stops working when javascript aggregation is on.
Comment #3
mellenger CreditAttribution: mellenger commentedI have the same problem.
Comment #4
mellenger CreditAttribution: mellenger commentedI excluded tiny_mce.js and it's all working fine now. thanks!
Comment #5
spiffyd CreditAttribution: spiffyd commentedHow did you exclude tiny_mce.js?
Comment #6
psynaptic CreditAttribution: psynaptic commentedIt 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?
Comment #7
spiffyd CreditAttribution: spiffyd commentedI 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)!
Comment #8
psynaptic CreditAttribution: psynaptic commentedI 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!
Comment #9
spiffyd CreditAttribution: spiffyd commentedTry clearing the cache in performance. Also clear all browser caches. I used Firefox 3
Comment #10
psynaptic CreditAttribution: psynaptic commentedI 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.
Comment #11
spiffyd CreditAttribution: spiffyd commentedTry 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
Comment #12
mellenger CreditAttribution: mellenger commentedUnder 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.
Comment #13
RobLoachIf you use http://drupal.org/project/wysiwyg , it should set TinyMCE as preprocess = FALSE, which will avoid the aggregation for TinyMCE.
Comment #14
bjkeyser CreditAttribution: bjkeyser commentedI 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.
Comment #15
mikeytown2 CreditAttribution: mikeytown2 commented@bjkeyser I had the same problem. Switch over to the 6.2.x Branch of WYSIWYG.
#388146: Won't attach with TinyMCE enabled.
Comment #16
derjochenmeyer CreditAttribution: derjochenmeyer commentedChanging priority to "normal".
Comment #17
awilliams CreditAttribution: awilliams commentedI 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)