Providing inline editing
A touted feature of Drupal 8 is the ability to provide inline editing. Inline editing is enabled by default with the standard installation profile through the Quick Edit module. The Quick Edit module allows editing individual fields while viewing a piece of content, and integrates it with the Editor module for WYSIWYG editors!
How to do it...
Let's provide inline editing:
- Go to a piece of created content.
- In order to enable inline editing, you must toggle contextual links on the page by clicking on
Edit
in the upper right of the administrative toolbar:
- This will toggle the contextual links available on the page. Click on the context link next to the content and select
Quick edit
:
- Hover over the body text and click on
Edit
. You can now edit the text with a minimal version of the WYSIWYG editor toolbar:
- Once you have changed the text, click on
Save
. - The changes will be saved immediately.
How it works...
The Contextual links module provides privileged users with shortcut links...