Ckeditor 5 plugins not rendering correctly

Created on 7 September 2023, over 1 year ago
Updated 15 September 2023, over 1 year ago

Problem/Motivation

I'm not sure if this is a problem with the video_embed_wysiwyg ckeditor 5 plugin or with smart trim but we're using smart trim to trim and strip HTML tags from the body field.
We're also using video_embed_wysiwyg (submodule of video_embed_field) and a patch from issue 3311063 ✨ Add support for Ckeditor 5 Needs review that adds support for ckeditor 5.

Whenever I have strip HTML tag filter enabled on smart_trim the ckeditor 5 tokens are not translated and we see the downcasted markup, something along the lines of:

{"preview_thumbnail":"/sites/default/files/styles/video_embed_wysiwyg_preview/public/video_thumbnails/bJX6-Rd0zkA.jpg?itok=M6D9Ovds","video_url":"https://www.youtube.com/watch?v=bJX6-Rd0zkA&ab_channel=KEXP","settings":{"responsive":true,"width":"854","height":"480","autoplay":true},"settings_summary":["Embedded Video (Responsive, autoplaying)."]} 

I've tried the latest 2.1.0 release as well as 2.1-dev and had the same output. If I disable the "strip HTML tags" filter, it disappears.
It seems to be related with the order on which the filters run?

πŸ› Bug report
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada bbombachini London, ON

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024