Not doing anything. What am I missing?

Created on 22 March 2024, 6 months ago
Updated 1 July 2024, 3 months ago

Problem/Motivation

Sorry for the vague title. It just doesn't seem to do anything but I think I might be missing understanding something.

Steps to reproduce

Clean Drupal 10.2.5-dev. No other plugins etc.
Enabled on both Full HTML and Basic HTML filters.
Default paste filters accepted without change.

If I'm understanding this, I should be able to paste <span>test</span> into the visual edit window and get test but I simply get <span>test</span>.

I'm installing this for someone else. I don't have Word but I see the regex filters for span and /span so I tried that. There are no console errors.

πŸ’¬ Support request
Status

Fixed

Version

1.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States tetranz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @tetranz
  • Status changed to Fixed 6 months ago
  • πŸ‡¨πŸ‡¦Canada Cottser

    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:

    1. Visit https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span#try_it
    2. Select and copy the content in the Output pane (where some words are highlighted in red)
    3. Navigate to your Drupal site where the CKEditor 5 instance is that you want to test, for example node add form
    4. 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.

  • πŸ‡¨πŸ‡¦Canada Cottser

    Glad to hear it! Thanks.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024