Module doesn't seem to work on Drupal 10.2.x or 10.3.x

Created on 13 June 2024, 11 months ago

Problem/Motivation

-

Steps to reproduce

* Created a demo site on simplytest.me
* Enabled the "Force paste as plain text" option in the Ckeditor settings
* Cleared all caches
* Created a new "Basic page"
* Copied and pasted rich text into the editor
* Observed that the module/plugin had no effect

Proposed resolution

-

Remaining tasks

-

User interface changes

-

API changes

-

Data model changes

-

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada jigarius MontrΓ©al

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

Comments & Activities

  • Issue created by @jigarius
  • πŸ‡«πŸ‡·France clemorphy Paris

    Tested on Drupal 10.3.5, and I can confirm it doesn't have any effect too.
    The pasted text coming from a Word document is still bloated with formats.

  • πŸ‡ͺπŸ‡¨Ecuador jwilson3

    I've confirmed the same issue, testing with Drupal core 10.3.10 and version 1.0.0-beta1 of the CKEditor 5 Paste as Plain Text module.

    Bumping to critical, since the module is effectively useless on Drupal 10.3+

  • πŸ‡ͺπŸ‡¨Ecuador jwilson3

    I’ve found a different module that purportedly does work and has a lot of installs, but it requires a bit more manual configuration to get it correct, which means more testing and review is required rather than this module which is basically "set it and forget it" (except that it doesn't work).

    https://www.drupal.org/project/ckeditor5_paste_filter β†’

  • πŸ‡ΊπŸ‡ΈUnited States kevinquillen

    The CKEditor docs say:

    With the plain text pasting feature, text pasted using the Ctrl/Cmd + Shift + V keystroke will match the formatting of the content you paste it into.

    Are folks using CTRL SHIFT V, or just CTRL V (CMD V)?

    When I try the demo page here:

    https://ckeditor.com/docs/ckeditor5/latest/features/pasting/paste-plain-...

    CTRL V pastes as-is from Clipboard, but CTRL SHIFT V pastes as plain text.

  • πŸ‡ͺπŸ‡¨Ecuador jwilson3

    I was using CTRL/CMD + V (mac), because this module's Project page description states the following:

    CKEditor 5 plugin to force pasting content as plain text.

    If this module requires using CTRL/CMD + SHIFT + V, then either the module description should be updated to clarify this, or the module needs to be fixed to actually "force" pasting as plain text.

  • πŸ‡ΊπŸ‡ΈUnited States kevinquillen

    So it did work? Just clarifying because I did not install it yet (due to this thread) but checked through the CK5 docs first.

  • πŸ‡ͺπŸ‡¨Ecuador jwilson3

    Ah. Sorry. No it doesn't work. As stated in the issue summary in slightly different wording, pasting (ie CTRL/CMD + V) does not strip out all the crazy formatting and inline styles when pasting from another rich-text application, like Word.

  • πŸ‡ΊπŸ‡ΈUnited States kevinquillen

    Thats what I mean, I don't think this takes over normal paste, because of its behavior. That is why its set to the CTRL SHIFT V shortcut.

Production build 0.71.5 2024