Commit 5311ca3288b00d44d74b158a959eee01b45705e6

Rex Zeng 2019-02-12T20:49:39

Fixed Toolbar plugin example (#1726) There was a function parameter missing in one of the Toolbar plugin examples.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/plugins/toolbar/index.html b/plugins/toolbar/index.html
index 5547c5d..5d8d63a 100644
--- a/plugins/toolbar/index.html
+++ b/plugins/toolbar/index.html
@@ -59,7 +59,7 @@
 	<p>If you need more control, you can provide a function to <code>registerButton</code> that returns either a <code>span</code>, <code>a</code>, or
 		<code>button</code> element.</p>
 
-	<pre><code class="language-javascript">Prism.plugins.toolbar.registerButton('select-code', function() {
+	<pre><code class="language-javascript">Prism.plugins.toolbar.registerButton('select-code', function(env) {
 	var button = document.createElement('button');
 	button.innerHTML = 'Select Code';
 
@@ -131,4 +131,4 @@
 <script src="code.js"></script>
 
 </body>
-</html>
\ No newline at end of file
+</html>