- Issue created by @mediabounds
- πΊπΈUnited States mediabounds
The removal of the
style
attribute seems pretty core to the Xss filter used by the Filter HTML plugin. But I couldn't find documentation on the module page either stating an incompatibility with the Filter HTML plugin or suggesting a required configuration. So I'm hoping I'm missing something. - π΅π±Poland salmonek
Hi Daniel, thank you for feedback.
There is mention about that incompatibility in the font family section - https://www.drupal.org/docs/extending-drupal/contributed-modules/contrib... β
That may be indeed a bit unfortunate in case someone is not interested with font family. We'll move that higher in the font section.If you would like to use font colors with HTML filter please check out highlight plugin. The "pen" type changes the font color using classes.
- πΊπΈUnited States mediabounds
Would there be any interest to this module to override the Filter HTML plugin to allow for the style attribute?
Thinking out loud--it seems like the plugin definition for the
filter_html
plugin could be altered to override theFilterHtml
class so that theprocess
implementation retained thestyle
attribute. (It could also do some basic filter to avoidurl()
in the inlined style.)Certainly that's not as secure as just removing the
style
attribute altogether...but maybe the trade off would be worth it for some folks. - π΅π±Poland salmonek
I don't think we'll be adding it to the Plugin Pack.
We're focusing on the CKEditor functionalities. HTML filter is editor agnostic so it seems out of scope of the module.
It looks like there is already a module that provides a HTML filter with style support: https://www.drupal.org/project/extended_html_filter β