Hello,
I use Silverstripe 2.3.7 (i know : i will upgrade :p) but i think this problem is in the last release too.
I use TinyMCE Template plugin but when i select a template, his preview isn't good : my editor.css isn't load. In firebug, i can see this error :
http://www.domain.tld/%20themes/myTheme/css/editor.css 404 Not Found
I think it's because a space (%20) is added !
I solved my problem by modifying the file jsparty/tiny_mce2/plugins/template/js/template.js, in "loadCSSFiles" function, line 49. I remove spaces before and after the string.
Before :
loadCSSFiles : function(d) {
var ed = tinyMCEPopup.editor;
tinymce.each(ed.getParam("content_css", '').split(','), function(u) {
d.write('<link href="' + ed.documentBaseURI.toAbsolute(u) + '" rel="stylesheet" type="text/css" />');
});
},
After :
loadCSSFiles : function(d) {
var ed = tinyMCEPopup.editor;
tinymce.each(ed.getParam("content_css", '').split(','), function(u) {
u = u.replace(/^\s+/g,'').replace(/\s+$/g,'');
d.write('<link href="' + ed.documentBaseURI.toAbsolute(u) + '" rel="stylesheet" type="text/css" />');
});
},
Hope this help somebody :)