Editor Links allow you to link to other sections of the CloudCannon interface from within the Visual Editor. Use them to create edit buttons for your collection items and blog posts that are not visible on your live site.
Editor Links are prefixed with
cloudcannon: and match the URL structure of the CloudCannon app, for example:
<a href="cloudcannon:collections/_staff/">Edit all staff</a>
<a href="cloudcannon:collections/_staff/jane-doe.md">Edit Jane Doe</a>
<a href="cloudcannon:collections/_posts/2015-07-30-welcome-post.md">Edit Welcome Post</a>
<a href="cloudcannon:status">Link to Site Status and Recent Activity</a>
To have edit links for posts in a list, add an Editor Link in the blog post loop:
To have an edit link on a collection item page, add the following to the page:
When generating Editor Links in Jekyll, collection items should use
relative_path, while posts and pages should use
To show Editor Links inside the editor and hide them on the live site:
- Give the links an appropriate class name (e.g.
- Use the following CSS to show the links inside the editor only:
CloudCannon adds the
.cms-editor-active class to the
body of your site in the Visual Editor. The class is not on the live site.