This project is not covered by Drupal’s security advisory policy.
CKEditor 4 showed the elements around the cursor in its status bar (body › ul › li › strong), and clicking one selected it. CKEditor 5 dropped the Elements Path, and there's no plugin to replace it. This module brings it back.
Features
- A bar under the editing area lists the elements around the cursor, outermost first, and updates as you type and move around.
- Click an element to select it: the text of an inline element such as
strongora, the contents of a block such asp,ulorblockquote, or a table or image as a whole. - Hover over an element to see its classes, for example
span.highlight. - It shows the markup that will actually be saved, so you can see how CKEditor 5 has structured your content.
- Nothing to configure: it appears in every text format that uses CKEditor 5, and hides while you edit the source.
Requirements
- Drupal 10.3 or 11, with core's CKEditor 5 module.
- The ckeditor5-elements-path library, which holds the CKEditor 5 plugin.
Installation
- Install the library into
libraries/ckeditor5-elements-path, either with Composer on a site set up for asset-packagist (composer require npm-asset/ckeditor5-elements-path), or by downloading a release from GitHub. - Install the module:
composer require drupal/ckeditor5_elements_path, then enable it.
The status report shows whether the library is installed.
Similar projects
Core's Show blocks toolbar button outlines block elements in the content. It doesn't show inline elements, and it can't select them.
Project information
- Project categories: Content editing experience
- Created by gordon on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
