The plugin depends on clipboard.js and the Prism Toolbar plugin. In addition to including the plugin file with your PrismJS build, ensure they are loaded before the plugin.
- -The simplest way to include clipboard.js is to use any of the
- recommended CDNs. If you're using Browserify, clipboard.js will be loaded automatically
- if it's included in your package.json
.
- If you don't load clipboard.js yourself, the plugin will load it from a CDN for you.
The plugin depends on the Prism Toolbar plugin. In addition to including the plugin file with your PrismJS build, ensure it is loaded before the plugin.