Port [Paste Format] to Drupal 8

Created on 1 November 2017, about 7 years ago
Updated 27 October 2023, about 1 year ago
📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇯🇴Jordan Rajab Natshah Jordan

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇳🇴Norway gisle Norway

    Last post was in 2022, but the reviews are encouraging.

    Is anyone still working on upgrading this to Drupal 9 and 10.

    I you want help, can help out as a co-maintainer to get this code committed.

  • Just leaving this here as an option for anyone else that comes searching as 9 and 7 slowly reach end of life.

    While updating the drupal module code from bgilhome's D8 rewrite to be compatible with D10 is a simple matter, the CKEditor plugin as it exists within the module is only compatible with CKE4 which is being removed in D10 and would need to be rewritten for CKE5. A plugin rewrite was well outside my wheelhouse and the time I have available, so I gave up and went looking for an alternative. The new CKEditor 5 Paste Filter came up which also sanitizes on paste like Paste Format does (imo it's the only user friendly method, it's the reason why I stuck with Paste Format for so long), and is configurable per text format instead of being global. The switch for me was easy since Paste Filter's default configuration cleans everything I was already excluding with Paste Format without also removing anything that I would want to keep, but your mileage may vary on complexity.

    CKEditor 5 Paste Filter: https://www.drupal.org/project/ckeditor5_paste_filter
    CKeditor Paste Filter, if you're determined to stick with CKE4 as contrib: https://www.drupal.org/project/ckeditor_paste_filter

    If you don't like the look of either of those and want to keep trying to rewrite Paste Format, I fully understand and wish you the best of luck. This is just what worked for me and may work for others with the time, resources, and expertise we have available. Much love to everyone who contributed to or left tips for Paste Format in 7, 8, and 9 and made my life as a site maintainer with a bunch of editors so much easier during all those years.

Production build 0.71.5 2024