I've got the PrintFriendly module installed on my drupal site, and it works well and prints great layouts. I'm having a few issues though. I use the CKEditor to enter content and have a few instances where I'm using inline styles to change the text and images in the content. When I go to the print version of my page via the PrintFriendly module, most of my inline styles are stripped. It appears that the only one it actually renders is the image float property. It's stripping font color, font size and image scaling from every single page that it is used on.
How can I get it to keep my inline styles?
Also - I'd like to be able to include some of the blocks that I have in the printed version. I have one block that appears on just about every page (it's just a two symbol legend at the bottom of the page) and I don't want to have to add the print=only class to each and every single node that appears above the block. Anyway to work around this issue?
Comments
Comment #1
printfriendly commentedTo get custom CSS styles, use our custom CSS feature. This may not be the solution you prefer since you're using inline styles, but it's the only thing I can think.
Print Friendly & PDF Custom CSS
Print-Only is the only way to force content to be included. It can be added to the parent content element and it will include all child elements.
PrintFriendly & PDF Custom Commands
Comment #2
Kristi_06 commentedYes, this really isn't an answer to the question. I know how to do the custom CSS, the inline styles not showing was what my question was about. I guess I'll have to move to a different module that will render my inline styles and work with Drupal blocks.
Comment #3
pinueve commentedcustom css here
https://www.drupal.org/node/2392157
Comment #4
fabsgugu commented