Skip to content

Commit

Permalink
Fix Readonly Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
calumk committed Jan 23, 2024
1 parent 8295878 commit 37b3919
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/editorjs-codeCup.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@calumk/editorjs-codecup",
"description": "Codecup, for EditorJS",
"version": "1.0.5",
"version": "1.0.6",
"author": "Calum Knott",
"repository": "https://github.com/calumk/editorjs-codecup",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/codecup.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@

this.data.editorInstance = new codecup(editorElem, {
language: this.data.language,
lineNumbers : this.data.showlinenumbers
// readonly : this.readOnly
lineNumbers : this.data.showlinenumbers,
readonly : this.readOnly
});

// console.log(this.data.editorInstance)
Expand Down

0 comments on commit 37b3919

Please sign in to comment.