drupal-module-ckeditor5-pluginlisted
Install: claude install-skill Simply007/drupalcon-chicago-26-ckeditor-ai-playground
# Extending CKEditor 5 with Custom Plugins in Drupal
## Overview
This skill teaches Claude Code how to create a Drupal module that extends CKEditor 5 with a custom plugin. It covers the complete workflow from understanding requirements to implementing a working plugin.
## Prerequisites
- **Drupal**: 10.1+ or 11.x
- **CKEditor 5**: Integrated via Drupal core
- **Composer**: For dependency management
- **Drush**: For module management and cache clearing
## Exploration Strategy
### 1. Understand the Codebase
Before creating a new CKEditor plugin, explore existing implementations:
```
Search for patterns in:
- web/modules/contrib/*/ - Look for modules with .ckeditor5.yml files
- web/modules/custom/*/ - Check existing custom CKEditor integrations
```
**Key files to examine:**
- `*.info.yml` - Module metadata structure
- `*.ckeditor5.yml` - CKEditor 5 plugin definition format
- `*.libraries.yml` - JavaScript library configuration
- `js/ckeditor5_plugins/*/src/index.js` - Plugin JavaScript structure
- `src/Plugin/CKEditor5Plugin/*.php` - PHP plugin classes
### 2. Use MCP Tools
**Context7** - For CKEditor 5 documentation:
```
mcp__context7__resolve-library-id
libraryName: "ckeditor5"
query: "Creating a CKEditor 5 plugin for Drupal integration"
mcp__context7__query-docs
libraryId: "/ckeditor/ckeditor5"
query: "How to create a simple plugin with a button that inserts content"
```
**WebFetch** - For Drupal documentation:
```
url: https://www.drupal.org/docs/devel