Skip to content

Commit

Permalink
invert copy button to default off
Browse files Browse the repository at this point in the history
  • Loading branch information
calumk committed Jan 24, 2024
1 parent 6dfef8a commit 963c6e3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/codecup.bundle.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
demo_dispose();
cup = new codecup('#cf_holder', {
language: current_language,
lineNumbers: true
lineNumbers: true ,
copyButton: true
});
demo_init();
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@calumk/codecup",
"version": "1.7.0",
"version": "1.8.0",
"description": "A micro code-editor for awesome web pages",
"main": "dist/codecup.bundle.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/codecup.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default class codecup {
this.opts.areaId = this.opts.areaId || null
this.opts.ariaLabelledby = this.opts.ariaLabelledby || null
this.opts.readonly = this.opts.readonly || false
this.opts.copyButton = this.opts.copyButton || true
this.opts.copyButton = this.opts.copyButton || false

// this.opts.handleSelfClosingCharacters = this.opts.handleSelfClosingCharacters || false

Expand Down

0 comments on commit 963c6e3

Please sign in to comment.