Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
e11sy committed Nov 18, 2024
1 parent a91662b commit fcf42f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# Editorjs List Tool

![](assets/readme_image.png)

- 🤩 Part of [Editor.js](https://editorjs.io/) ecosystem.
- 📂 Nesting.
- 🔥 Ordered and Unordered lists.
Expand All @@ -26,7 +28,7 @@ yarn add @editorjs/list
Include module at your application

```javascript
import List from '@editorjs/list';
import EditorjsList from '@editorjs/list';
```

Optionally, you can load this tool from CDN [JsDelivr CDN](https://cdn.jsdelivr.net/npm/@editorjs/list@latest)
Expand All @@ -37,14 +39,14 @@ Add the List Tool to the `tools` property of the Editor.js initial config.

```javascript
import EditorJS from '@editorjs/editorjs';
import List from '@editorjs/list';
import EditorjsList from '@editorjs/list';

var editor = EditorJS({
// ...
tools: {
...
list: {
class: List,
class: EditorjsList,
inlineToolbar: true,
config: {
defaultStyle: 'unordered'
Expand All @@ -53,6 +55,8 @@ var editor = EditorJS({
},
});
```
> [!IMPORTANT]
> Note that in List 2.0 class name changed from `List` to `EditorjsList`.
## Config Params

Expand Down
Binary file added assets/readme_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fcf42f1

Please sign in to comment.