- Issue created by @bbombachini
- πΊπΈUnited States ultimike Florida, USA
Tagging as a novice issue for now - needs clear steps to reproduce. See https://www.drupal.org/community/contributor-guide/task/document-steps-t... β for more info.
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?
Active
2.1
Code
It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.
Tagging as a novice issue for now - needs clear steps to reproduce. See https://www.drupal.org/community/contributor-guide/task/document-steps-t... β for more info.