File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -8,30 +8,23 @@ Code Tool for the [Editor.js](https://ifmo.su/editor) allows to include code exa
88
99## Installation
1010
11- ### Install via NPM
12-
1311Get the package
1412
1513``` shell
16- npm i --save-dev @editorjs/code
14+ yarn add @editorjs/code
1715```
1816
1917Include module at your application
2018
2119``` javascript
22- const CodeTool = require ( ' @editorjs/code' ) ;
20+ import CodeTool from ' @editorjs/code' ;
2321```
2422
25- ### Download to your project's source dir
26-
27- 1 . Upload folder ` dist ` from repository
28- 2 . Add ` dist/bundle.js ` file to your page.
29-
3023### Load from CDN
3124
3225You can load specific version of package from [ jsDelivr CDN] ( https://www.jsdelivr.com/package/npm/@editorjs/code ) .
3326
34- ` https://cdn.jsdelivr.net/npm/@editorjs/code@2.0.0 `
27+ ` https://cdn.jsdelivr.net/npm/@editorjs/code@latest `
3528
3629Require this script on a page with Editor.js.
3730
You can’t perform that action at this time.
0 commit comments