Install
Works with Drupal: ^11.3Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
73.52 KB
MD5: 0488596ef619f4e74da5a20e4b90c3ee
SHA-1: ae587ced7bec0566a8e0211177fa56a9233a229d
SHA-256: 740c21a710c9e6d90622ab3bc9fa588cbaab886327ed96e6d12e63947613606b
Download zip
95.39 KB
MD5: 72fbe3e9f21a6a3854bd4a2f0038ca61
SHA-1: 8f873e2f9d4539e645464b6ecc7dc9a2dea802bd
SHA-256: 022642122a6663a7362d1d9a12aab28df8919e2cbbd8fd5b5e7e75f2baa42f5d
Release notes
The first alpha of Canvas Content Editor: write content as a stream of Drupal Canvas components, right in the regular edit form. The API and the editor's markup may still change before a beta.
Highlights
- Chooser: the + between blocks opens a compact, searchable chooser beside it, grouped by Canvas folder, with Canvas Patterns. Arrow keys, Enter and Esc work, and a slot that takes one kind of component adds it straight away.
- Blocks: each block shows its icon, type and a one-line summary, with Move up, Move down, drag, Duplicate and Remove (with Undo) in its header.
- Nesting: blocks in slots hang off a dashed line, and only top-level blocks are drawn as cards. Slot rules come from core's SDC slot metadata.
- Icons: components set an icon in their
.component.yml(any core Icon API pack, or an SVG in the component's folder); the module ships a pack of line icons, and site builders can pick icons for any component under Configuration › Content authoring › Canvas Content Editor. - Block style: a widget setting, Cards (default) or Lines.
- Previews: Form and Preview views, editing in place or in a side panel, and a live preview beside the form.
- Starting values per content type, Canvas Content Templates support (the Content components block), and preview classes for content on its own background.
- Built and tested for WCAG 2.2 AA in Gin and Claro.
Requirements
- Drupal 11.3 or later
- Drupal Canvas 1.12 or later
- Media Library (core)
Installing
composer require 'drupal/canvas_content_editor:^1.0@alpha'
Coming from 1.0.x-dev
Change your Composer constraint from 1.0.x-dev to ^1.0@alpha, run composer update drupal/canvas_content_editor, then drush updb and drush cr. Stored content and settings carry over: there are no update hooks, and the new settings take their defaults.