From 5311ca3288b00d44d74b158a959eee01b45705e6 Mon Sep 17 00:00:00 2001 From: Rex Zeng <rex@rexskz.info> Date: Tue, 12 Feb 2019 20:49:39 +0800 Subject: [PATCH] Fixed Toolbar plugin example (#1726) There was a function parameter missing in one of the Toolbar plugin examples. --- plugins/toolbar/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/toolbar/index.html b/plugins/toolbar/index.html index 5547c5de85..5d8d63a1e7 100644 --- a/plugins/toolbar/index.html +++ b/plugins/toolbar/index.html @@ -59,7 +59,7 @@ <h1>How to use</h1> <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 @@ <h1>How to use</h1> <script src="code.js"></script> </body> -</html> \ No newline at end of file +</html>