The prismic toolbar is integrated to your website for:
- Preview unpublished changes (drafts and releases)
- Edit button: easy access to the corresponding document in the Prismic Backend.
- A/B testing (experiments)
In order to use the toolbar you need to include the following script on every page of your site. You need to make sure to replace <your-repo-name>
with the url name of your Prismic repository.
<script>
window.prismic = {
endpoint: 'https://<your-repo-name>.prismic.io/api/v2'
};
</script>
<script type="text/javascript" src="//static.cdn.prismic.io/prismic.min.js"></script>
More info for how to setup Previews & Edit buttons can be found in the Prismic.io documentation. There are resources there for all the main technologies we support.