Hi,
I'm trying to find out how the css class drop down menu (button instert image -> tab appearance) gets to show the classes from my theme stylesheet.
I configured the wysiwyg profile to "Define CSS" and entered "%b%t/style.css" or "/theme/thememame/style.css" but it doesn't show any styles of that. Cache cleared.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 201207241250-404.png | 39.47 KB | brianlp |
Comments
Comment #1
twodIf you use Firebug for Firefox or a similar tool, does it show that it could find and download the file correctly, or does it show up with an HTTP Status 404?
Comment #2
brianlp commentedThere is one 404 error for "/modules/field/style.css" (which doesn't exist).
If I open the recources view in Firebug (I use Safari), I can see that the theme style.css is loaded in the folder for the image picker module but not in "Frame/(edit)/mce_24_ifr" (I assume this is the location where it should be...?). See the screenshot attached.
Comment #3
twodThat probably happens because Wysiwyg used to replace
%twithpath_to_theme()before 7.x-2.2. That function sometimes returns the path to the module providing the current theme function (which in your case happens to be the field module), so we re changed it to usedrupal_get_path('theme', variable_get('theme_default', NULL));in 7.x-2.2.Can you upgrade to 2.2 and check if that fixes the issue?
Comment #4
brianlp commentedIt works, thank you. The Style.css is loaded and the styles are shown in the dropdown.
( for "/sites/all/themes/[mytheme]/style.css" or "%b%t/style.css" )
Comment #5
twodOk, great.