- Issue created by @tetranz
- Status changed to Fixed
9 months ago 8:56pm 22 March 2024 - π¨π¦Canada star-szr
Hi, I think it might be a misunderstanding.
This module will filter rich text content pasted into the visual editor (WYSIWYG). If you paste plain text (HTML) into the visual editor, there's no rich text to filter.
One way to test and see what the module is doing would be to follow these steps:
- Visit https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span#try_it
- Select and copy the content in the Output pane (where some words are highlighted in red)
- Navigate to your Drupal site where the CKEditor 5 instance is that you want to test, for example node add form
- Paste the content in your clipboard into the CKEditor 5 visual editor (WYSIWYG, not source editor)
If you follow these steps without this module installed (or with it disabled), the
<span>
tags will be preserved. With this modules installed, enabled and with the default filters, the<span>
tags will be removed!If you have another use case like filtering when you paste into the source editor, I'm not sure offhand what is possible there but that is different functionality.
- πΊπΈUnited States tetranz
Thanks for the quick and complete reply star-szr.
I was misunderstanding. It's working perfectly.
Automatically closed - issue fixed for 2 weeks with no activity.