Digged a bit in the existing issues, and i found nothing exactly related. Maybe updating TinyMCE might fix it, but i'm reporting the issue anyway if others stumble upon a similar issue

Using TinyMCE 3.3b1, everything works fine except when i open a dialog (being image, link, styles, table) the dialog has no css when javascript is optimized in performance admin settings. Reverting the optimization makes it work again.

The url generated for 'popup_css' in tinymce config is wrong when optim is on :
/node/108/themes/advanced/skins/default/content.css
/node/108/themes/advanced/skins/default/dialog.css

When optims are off the correct requests are :
/sites/all/libraries/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/content.css?g
/sites/all/libraries/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/dialog.css?g

Looking at the source of tinyMCE, the issue seems to be around line 9262 in libraries/tinymce/jscripts/tiny_mce/tiny_mce_src.js

Comments

landry’s picture

Title: TinyMCE 3.3b1 dialogs css urls are wrong when js is optimized » TinyMCE dialogs css urls are wrong when js is optimized

I've just checked, and the issue is still present with TinyMCE 3.4.

twod’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)
Related issues: +#356480: Lazy-load editors

Apologies for the extremely long delay. I simply did not see this issue until now.

This happened because could not automatically detect its base path when Drupal aggregated files and replaced the script tag linking in the main TinyMCE script. This should have been fixed by #356480: Lazy-load editors.

Please try with the latest 6.x-2.x-dev snapshot and see if the problem remains. If so, please reopen this issue.