Did something change in the way CSS files are loaded?
The theme variant custom_css file is no longer the last one loaded. I'm seeing jquery.sceditor.css loaded after the custom css now which is overriding the changes I've made to the editor. (And this has nothing to do with the wysiwyg editor issue.)
When I was writing the custom css it was loaded last and so the recoloring of the rest of the editor besides wysiwyg did work.
Re: Did something change in the way CSS files are loaded?
Reply #3 –
Yes but what about the editor files? That's what Scripple is talking about.
Re: Did something change in the way CSS files are loaded?
Reply #4 –
Look at your page source on action=post. Is the custom css below the sceditor one?
Re: Did something change in the way CSS files are loaded?
Reply #5 –
hmm... the previous place wasn't exactly correct (I'd argue it's not correct to have index.css there as well, it should go in loadTheme along with all the other css files).
Anyway, there could always be something able to override it unless it's added directly to template_css (think about any addon that will load a css file "at some random point" during the execution) and this wouldn't be a very good idea because that function (like template_javascript) is already doing much more than it should do.
Noob question: if you are touching even the editor, isn't it worth create a new variant?
Re: Did something change in the way CSS files are loaded?
Reply #6 –
Well, see my other thread about the editor wysiwyg mode not working for variants. I've not looked carefully at the code, will css files from variants be loaded from more than the three that are there in _light and the custom file?
If so yes I can move the (non-wyziwyg) sceditor into my variant and modify it.
Re: Did something change in the way CSS files are loaded?
Reply #8 –
Okay, in the current HEAD the editor style sheet should be variant-dependent if the theme has variants, or global if it doesn't have variants.
So that should work...
And add additional custom style sheets to the editor is not possible as far as I can tell.
Considering everything that should be fixed now... right?
Re: Did something change in the way CSS files are loaded?
Reply #14 –
Unfortunately one of the two we are talking about here, doesn't work with loadCSSFile and cannot work with it because is a style sheet added specifically to the javascript that builds the editor to style the iframe that contains the WYSIWYG editor (I wonder if calling the css "wiz" is clear enough or I should use the extended "wysiwyg", dunno).
The other... yes it may work, but... will explain in the other issue.