Example configuration for enabling the full_html text format and a matching CKEditor 5 profile for use with the Canvas Full HTML module.
This repository ships a tiny Drupal module named canvas_full_html_example that provides example config for a Full HTML text format and CKEditor 5 profile. It also includes a minimal install profile at profiles/canvas_full_html_example for quick spins. You can either:
- Enable the module to install the config automatically, or
- Copy the config into your site's config sync directory and import it manually.
- Drupal 10.3+ or 11
- Core modules: Filter, Editor, CKEditor 5, Media, Media Library
- Contrib modules: Canvas, Canvas Full HTML
- Enable
canvas_full_html_exampleso the module is visible in the codebase.
Option A: Install on module enable
- Enable the module (the config in
config/installis installed automatically).
Option B: Import manually
- Copy the example config files into your config sync directory:
config/example/filter.format.full_html.yml
config/example/editor.editor.full_html.yml
- Import configuration (
drush cimor the admin UI).
Option C: Install profile
- Use the
Canvas Full HTML Exampleprofile during site install to enable required modules and the example config. - Or install with Drush:
drush site:install canvas_full_html_example --yes
- Visit the Canvas Full HTML settings page to enable the format and adjust permissions.
- The config mirrors the Drupal 11 standard profile Full HTML defaults (including toolbar and allowed tags).
- The
config/installcopy is identical to theconfig/examplefiles for transparency. - Adjust filters, toolbar items, and allowed roles (the default is
administrator) to fit your security model.
Install dev dependencies and run checks:
composer install
vendor/bin/phpcs
vendor/bin/phpunit