I am using the Acquia Marina theme but when I go to use the image assist with wysiwyg and tinymce. When I use the popup window it has the same theme background as Marina is there a way to stop this?

CommentFileSizeAuthor
#2 dark-bg-img-assist.png75.64 KBphilbar

Comments

matt b’s picture

I have the same issue. The theme background is used on the popup making the popup unusable.

philbar’s picture

Category: support » bug
StatusFileSize
new75.64 KB

I'm also having this problem. Since mine is a dark background, I can't view the dark text. This makes the module difficult to impossible to use.

Changing to a bug report.

See attached image for the problem.

tonebari’s picture

Ditto

mgriffith’s picture

In your theme's page.tpl.php, make sure that the body tag includes the following:

<body class="<?php print $body_classes; ?>">

Then edit your CSS file so that your background is assigned like so:

body.front, body.not-front {
   /* all style rules pertaining to the font & background color or image. e.g.: */
   background: url(path/to/bkgrnd.jpg);
}

That will keep the site's background image out of FCKEditor and should work for Image Assist as well.

matt b’s picture

Thanks, that did work for the thumbnail pop up, but when I click on Upload, it's readable at the top, then half way down the background switches to dark blue (the theme background) and the text is still unreadable. Unfortunately, CSS is not my strong point!

mgriffith’s picture

Assigned: Unassigned » mgriffith
Category: bug » task
Priority: Normal » Minor

Matt,

Point me to the site and I will take a quick look. I don't think this is a bug for Image Assist - more a theme issue.

--Mike

matt b’s picture

Go to http://thepositiveword.com and create yourself an account. Let me know and then I'll give you the permission level needed to add images.

Thanks

Matt

mgriffith’s picture

Matt,

Created an account. We can likely finish resolving this via eMail. Ping me at the account I signed up with.

--Mike

traceelements’s picture

Version: 6.x-2.0-alpha3 » 6.x-2.0-alpha4

I am having this issue as well. My custom theme has a dark background image, which is showing up in the image assist popup, and making the text unreadable. I tried adding body.img_assist {background: #fff;} to my style.css, but that didn't do anything. Help, please! In my theme's page.tpl.php, my body tag is written this way: <body<?php print phptemplate_body_class($left, $right); ?>> so I don't know how to implement the suggestion that is listed above.

traceelements’s picture

Assigned: mgriffith » Unassigned
Category: task » support
Priority: Minor » Normal
traceelements’s picture

Status: Active » Closed (fixed)

Nevermind. The background color is now the default gray and I have NO IDEA why it changed.

traceelements’s picture

Status: Closed (fixed) » Active

Okay, now it's back to the dark background image. Help, please!

traceelements’s picture

Anyone? Surely someone else had and solved this issue.

dnewkerk’s picture

Try this (works for me)... open your style.css file and add the following to it:

body.img_assist {
  background-image: none;
}

Clear Drupal's caches (especially if you have CSS aggregation and other caching enabled) at Administer > Site configuration > Performance.

Next clear your browser's cache. The changes don't appear to take hold immediately unless you do this.
Go back to your site and reload the page and open up an Image Assist window. The background image should now be gone.
Hope this helps.

traceelements’s picture

Status: Active » Fixed

Oh my god, it worked. Thank you sooooo much. I feel dumb that I didn't try that earlier.

matt b’s picture

Thanks Keyz! On the sky theme I had this in my appearance.css:

html,body {
  background: #314C74 url('../images/bg-body.png') repeat-x left top;
}

I added your body.img_assist code but found I had to remove 'html,' from the above. It now works fine, hopefully I've not caused a problem elsewhere!

Status: Fixed » Closed (fixed)

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

thomasmurphy’s picture

I had the same problem, I had added all the required css, all caching was switched off on my browser and in drupal, I cleared firefox's cache and still had the same problem.

In desperation I went to the URL of the css file to see if the changes I was making locally were taking on the server, and the answer was that the browser, when it loaded the css as text into the browser, still thought it was the old version, despite all the cache clearing. Anyway, once it was being loaded into the browser , it actually refreshed on hitting ctrl f5. Crazy! I'm guessing my company network has a cache somewhere that I don't have control over that really likes old versions of css file. I have now solved my problem, but I thought I'd share in case anyone else ends up here in my situation.

ñull’s picture

Component: User interface » Code
Category: support » bug
Status: Closed (fixed) » Needs work

I still see that in head in img_assist_popup.css body.img_assist still misses the background-image: none; to switch off a possible background image in the theme. Please could that be added?