Skip to content

Commit

Permalink
Mod: update docs to include allowLineBreaks config option
Browse files Browse the repository at this point in the history
  • Loading branch information
mrspence committed Dec 17, 2021
1 parent f17122e commit 10fdaf8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,12 @@ var editor = EditorJS({

All properties are optional.

| Field | Type | Description |
| ------------ | ---------- | --------------------------- |
| placeholder | `string` | header's placeholder string |
| levels | `number[]` | enabled heading levels |
| defaultLevel | `number` | default heading level |
| Field | Type | Description |
| --------------- | ---------- | ----------------------------------- |
| placeholder | `string` | header's placeholder string |
| levels | `number[]` | enabled heading levels |
| defaultLevel | `number` | default heading level |
| allowLineBreaks | `bool` | allow line breaks. default: `false` |

```javascript
var editor = EditorJS({
Expand All @@ -95,7 +96,8 @@ var editor = EditorJS({
config: {
placeholder: 'Enter a header',
levels: [2, 3, 4],
defaultLevel: 3
defaultLevel: 3,
allowLineBreaks: true
}
}
}
Expand Down

0 comments on commit 10fdaf8

Please sign in to comment.