- Issue created by @Jons
- 🇵🇱Poland dolszewski
Hello @jons
Do you have enabled "Limit allowed HTML tags and correct faulty HTML" filter in your full_html text format? I assume that could be the reason why attributes are stripped out. - 🇬🇧United Kingdom Jons
Hi @dolszewski
Yes disabling this stops the stripping - but should there be a config to allow span to have an attribute?
With a custom tag this is possible. Would it make sense to use a custom tag? - 🇵🇱Poland salmonek
Hi @jons
As far as I remrmber the CKeditor 5 plugin works onspan
itself, so that would need to rewrite the plugin itself.
There is a workaround though. Highlight plugin works in a similar way, but uses classes andmark
elements. Please try it - maybe it'll suit your needs. Please be aware that you'll need to add the styling to your theme manually, reuired code is availabe in the config form.
https://www.drupal.org/docs/extending-drupal/contributed-modules/contrib... → - Status changed to Closed: works as designed
4 months ago 9:09am 9 July 2024 - 🇵🇱Poland dolszewski
Closing the issue. As a reference: https://www.drupal.org/project/drupal/issues/3381471 ✨ CKEditor 5: Restricting the style attribute in tag has restricted some modules to work as expected. Closed: works as designed