@editorjs/header 2.8.0 → 2.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,36 +6,19 @@ Provides Headings Blocks for the [Editor.js](https://ifmo.su/editor).
|
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
|
-
### Install via NPM
|
|
10
|
-
|
|
11
9
|
Get the package
|
|
12
10
|
|
|
13
11
|
```shell
|
|
14
|
-
|
|
12
|
+
yarn add @editorjs/header
|
|
15
13
|
```
|
|
16
14
|
|
|
17
15
|
Include module at your application
|
|
18
16
|
|
|
19
17
|
```javascript
|
|
20
|
-
|
|
18
|
+
import Header from '@editorjs/header';
|
|
21
19
|
```
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
1. Upload folder `dist` from repository
|
|
26
|
-
2. Add `dist/bundle.js` file to your page.
|
|
27
|
-
|
|
28
|
-
### Load from CDN
|
|
29
|
-
|
|
30
|
-
You can load specific version of package from [jsDelivr CDN](https://www.jsdelivr.com/package/npm/@editorjs/header).
|
|
31
|
-
|
|
32
|
-
`https://cdn.jsdelivr.net/npm/@editorjs/header@latest`
|
|
33
|
-
|
|
34
|
-
Then require this script on page with Editor.js.
|
|
35
|
-
|
|
36
|
-
```html
|
|
37
|
-
<script src="..."></script>
|
|
38
|
-
```
|
|
21
|
+
Optionally, you can load this tool from CDN [JsDelivr CDN](https://cdn.jsdelivr.net/npm/@editorjs/header@latest)
|
|
39
22
|
|
|
40
23
|
## Usage
|
|
41
24
|
|