By dave reid on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x-1.x
Introduced in version:
8.x-1.10
Issue links:
Description:
Embed's CKEditor 4 integration is deprecated in 8.x-1.9 and removed in 2.0.0, since Drupal core no longer includes CKEditor 4. This covers EmbedCKEditorPluginBase, the check that new embed button IDs don't conflict with CKEditor 4 buttons, and the check that a text format enables the filters its CKEditor 4 embed buttons require.
Modules that provide a CKEditor 4 plugin for an embed type should provide a CKEditor 5 plugin instead, extending EmbedCKEditor5PluginBase.
Before
use Drupal\embed\EmbedCKEditorPluginBase;
class MyEmbed extends EmbedCKEditorPluginBase {
}
After
use Drupal\embed\Plugin\CKEditor5Plugin\EmbedCKEditor5PluginBase;
class MyEmbed extends EmbedCKEditor5PluginBase {
}
The before/after example is simplified: a CKEditor 5 plugin also needs its *.ckeditor5.yml definition and JavaScript. Link Entity Embed's DrupalEntity plugin as a fuller example, or drop the example.
Impacts:
Module developers