Plugin and Contrib module development
This documentation needs work. See "Help improve this page" in the sidebar.
Creating a Drupal module
See https://api.drupal.org/api/drupal/core%21modules%21ckeditor5%21ckeditor5.api.php/group/ckeditor5_architecture/10.0.x#plugins for how to define CKEditor 5 plugins in a Drupal module.
The JS files in packages can be used directly in a Drupal module without any further build step, for example packages/ckeditor5-horizontal-line/build/horizontal-line.js.
Creating a custom CKEditor 5 plugin
See https://www.drupal.org/project/ckeditor5_dev for how to create custom CKEditor 5 plugins, using a starter template that also generates a Drupal module.
Example: https://www.drupal.org/project/ckeditor5_dev/issues/3258194.
For the actual CKEditor 5 plugin JavaScript APIs, see:
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion