- 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... β