Skip to content

Isn't anymore on npm. Include script static.cdn.prismic.io/prismic.min.js instead

Notifications You must be signed in to change notification settings

garethcokell/prismic-toolbar

 
 

Repository files navigation

Build Status Dependency Status Greenkeeper badge

Prismic toolbar

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)

How to use it?

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>

Prismic Documentation

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.

About

Isn't anymore on npm. Include script static.cdn.prismic.io/prismic.min.js instead

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.0%
  • Shell 1.0%