Our Drupal theme defines CSS for printing using the group print

stylesheets[all][] = css/main.css
stylesheets[all][] = css/responsive.css
stylesheets[print][] = css/print.css

What was observed: The Wysiwyg module apply all CSS defined in the .info file, including the print.css style.

What was expected: The Wysiwyg module should only apply the styles set for the group all, or at least, ignore the styles set for special groups such as print.

NOTE: I have tried the latest dev version (as of 30 Apr 2019). It has a fix for a similar CSS issue (https://www.drupal.org/project/wysiwyg/issues/2884691) but that didn't fix the print issue.

CommentFileSizeAuthor
#2 wysiwyg.print-css.3051597.1.patch545 bytesTwoD
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gaellafond created an issue. See original summary.

TwoD’s picture

Status: Active » Needs review
FileSize
545 bytes

Could you please check if this patch helps?
You may need to clear caches after applying it.

  • TwoD committed eb040a0 on 7.x-2.x
    - #3051597 by TwoD: Fixed CSS of group "print" are applied to the...
TwoD’s picture

Status: Needs review » Fixed

I've not run in to any issues with this so far so committing it. Thanks for reporting it!

Status: Fixed » Closed (fixed)

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