Support CKEditor 5

Created on 28 June 2022, almost 2 years ago
Updated 9 February 2023, over 1 year ago

Problem/Motivation

1. Set CKEditor 5 editor to your text format
2. Enable Video Filter filter
3. Submit "Save"
4. Get warning "CKEditor 5 only works with HTML-based text formats. The "Video Filter" (video_filter) filter implies this text format is not HTML anymore."

Steps to reproduce

Change in \Drupal\video_filter\Plugin\Filter\VideoFilter plugin type in definition

/**
 * Render Video Filter.
 *
 * @Filter(
 *   id = "video_filter",
 *   title = @Translation("Video Filter"),
 *   description = @Translation("Substitutes [video:URL] with embedded HTML."),
 *   type = Drupal\filter\Plugin\FilterInterface::TYPE_TRANSFORM_REVERSIBLE,
 *   settings = {
 *     "width" = 400,
 *     "height" = 400,
 *     "plugins" = {
 *       "youtube" = 1,
 *       "vimeo" = 1
 *     },
 *     "allow_multiple_sources" = TRUE
 *   }
 * )
 */
✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇷🇺Russia batkor Irkutsk

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.

Production build 0.69.0 2024