Visual editing lets you review and change content directly from a live preview of your frontend. Instead of editing fields by name in a form and guessing how the result will look, you see the actual page and edit from it. Nothing you do in the preview panel publishes your content: saving updates the preview, not the live site.
#What is visual editing?
Without visual editing, you edit fields in the content entry form and guess what the result looks like. With it, you see the actual page and click what you want to change.
#Live preview
Live preview
Live preview shows your draft content rendered in the frontend, side by side with the entry form. If your project uses multiple locales, a locale switcher appears in the preview panel. When you open an entry, you can see exactly how your draft content looks on the actual site before you publish it. You make changes in the entry form, save, and the preview refreshes.
#Click to Edit
Click to Edit
Click to Edit adds Edit buttons to elements in the preview so you can jump directly to any field. You hover over any element in the preview and click Edit to jump directly to that field in the entry form. You no longer need to navigate to the right field in the content entry form manually.
#What your developer needs to set up
Your developer needs to configure Visual editing before you can use it. You cannot enable it yourself from the content editor.
For live preview, your developer needs to:
- Add a Preview widget to your content model in the schema builder and configure a preview URL
- Configure your frontend to serve draft content so unpublished changes are visible in the preview
Once this is done, the Open live preview button appears in the right sidebar when you open a content entry. If the button does not appear, or the preview panel is blank, ask your developer to verify the setup.
For Click to Edit, your developer needs to:
- Install the Hygraph Preview SDK and add the necessary markup to your frontend
Once this is done, Edit buttons appear on elements in the preview. If no buttons appear, ask your developer to verify the setup.
#What's next
- Live preview: How to open the preview panel, save and refresh, and switch between preview URLs.
- Use Click to Edit: How to use Click to Edit in Studio and standalone mode, and what to do when Edit buttons are missing.