From 10fdaf81300c65b5cb0921694ca0ab35db5054c9 Mon Sep 17 00:00:00 2001 From: Matt Spence Date: Fri, 17 Dec 2021 23:35:35 +0000 Subject: [PATCH] Mod: update docs to include ` allowLineBreaks` config option --- README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index aaf9216..8320569 100644 --- a/README.md +++ b/README.md @@ -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({ @@ -95,7 +96,8 @@ var editor = EditorJS({ config: { placeholder: 'Enter a header', levels: [2, 3, 4], - defaultLevel: 3 + defaultLevel: 3, + allowLineBreaks: true } } }