Skip to content

Commit

Permalink
Fixed Toolbar plugin example (#1726)
Browse files Browse the repository at this point in the history
There was a function parameter missing in one of the Toolbar plugin examples.
  • Loading branch information
RexSkz authored and RunDevelopment committed Feb 12, 2019
1 parent 57a9203 commit 5311ca3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/toolbar/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -131,4 +131,4 @@ <h1>How to use</h1>
<script src="code.js"></script>

</body>
</html>
</html>

0 comments on commit 5311ca3

Please sign in to comment.