TinyMCE dialog.css does not load into popup image, throws 404

When the image icon is clicked and the "Image" popup window starts, JS works, but CSS ( dialog.css) does not load, and exists 404due to the incorrect URL used by TinyMCE JS.

I download tinyMCE with an extended theme from a path:

"/local/scripts/admin/tiny_mce/tiny_mce.js" 

The editor works fine, but when I try to load a pop-up image, the dialog does not load, and Firebug reports 404.

The popup code attempts to load dialog.css relative to the page on which tinyMCE is loaded (in this case "/ school"), so the final URL caused by the popup image code that returns 404is:

https://[domain name]/schools/themes/advanced/skins/default/dialog.css

instead https://[domain name]/local/scripts/admin/tiny_mce/themes/advanced/skins/default/dialog.css

I do init()with tinyMCE.baseURL='/local/scripts/admin/tiny_mce';and tried permutations, including the fully qualified host name and path, trailing slashes, etc., but did not succeed. Also tried some of the configuration properties document_base_urland relative_urls.

Any ideas why dialog.cssnot loading?

Thank you very much for your help. TinyMCE 3.4.9(non-jQuery version)

+5
source share
2 answers

I had the same problem when the popups did not recognize or use base_url for dialog.css. I also tried many hostname options and baseURL / document_base_url / relative_urls combinations ... without success.

I came up with a work that uses "popup_css_add".

dialog.css, popup_css_add.

tinyMCE.init({
  popup_css_add : '/local/scripts/admin/tiny_mce/themes/advanced/skins/default/dialog.css'
 });
+1

tinyMCE.baseURL = "/school" - @UnLoCo 9 1:12

0

All Articles