Add CSS Filter
Categories
Component ID
2321191
Component name
Add CSS Filter
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
702
Component created
Component changed
Component body
An input filter that adds css to the filtered text. This might be useful for theming email.
It has two options
- Enter CSS (inline) directly in your filter settings
- Link stylesheets (external) from your theme
Configuration
- enable this module
- goto admin/config/content/formats
- configure the text-format
- click checkbox "Add CSS" (enable this filter)
- under filter settings add your inline and/or external CSS.
Setup for styled email
Say you have a specific text format for your emails, this module provides you a method to add CSS to it. In this use case you would also use 'pathologic' and 'emogrifier'. Where 'pathologic' converts relative links to absolute links and emogrifier parses all css (that is just added) to inline CSS (needed for a lot of mail clients). The filter-order would be:
- Pathologic
- Add CSS
- Emogrifier
