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.

CommentFileSizeAuthor
#2 201207241250-404.png39.47 KBbrianlp

Comments

twod’s picture

If 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?

brianlp’s picture

StatusFileSize
new39.47 KB

There 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.

404

twod’s picture

That probably happens because Wysiwyg used to replace %t with path_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 use drupal_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?

brianlp’s picture

It 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" )

twod’s picture

Status: Active » Fixed

Ok, great.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.