Skip to content

Commit

Permalink
update code editor
Browse files Browse the repository at this point in the history
  • Loading branch information
pmtpro committed Oct 6, 2024
1 parent 9ec0aee commit b3db4c7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion edit_code.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@
<div id="code_check_message" class="list">
</div>';


// fix codemirror
echo '<script>window.EditContext = false</script>';
echo '<script src="' . asset('js/edit_code.bundle.js') . '"></script>';
echo '<script>
const codeCheckMessageElement = document.getElementById("code_check_message")
Expand Down
2 changes: 1 addition & 1 deletion js/edit_code.bundle.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
"build": "rollup --config rollup.config.js"
},
"dependencies": {
"@codemirror/lang-css": "^6.2.1",
"@codemirror/lang-css": "^6.3.0",
"@codemirror/lang-html": "^6.4.9",
"@codemirror/lang-javascript": "^6.2.2",
"@codemirror/lang-json": "^6.0.1",
"@codemirror/lang-php": "^6.0.1",
"@codemirror/lang-sass": "^6.0.2",
"@codemirror/lang-sql": "^6.7.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@codemirror/lang-sql": "^6.8.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-terser": "^0.4.4",
"cm6-theme-material-dark": "^0.2.0",
"@codemirror/view": "6.27.0",
"@codemirror/view": "6.34.1",
"codemirror": "^6.0.1",
"rollup": "^4.18.0"
"rollup": "^4.24.0"
}
}
6 changes: 3 additions & 3 deletions version.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"repo": "file-manager-main",
"major": 1,
"minor": 0,
"patch": 50,
"version": "1.0.50",
"message": "tối ưu pro max!"
"patch": 51,
"version": "1.0.51",
"message": "update code editor!"
}

0 comments on commit b3db4c7

Please sign in to comment.