From fe21055b8e73bb77e6393201ef8d59cfce674582 Mon Sep 17 00:00:00 2001 From: Thibaud Colas Date: Thu, 18 Jan 2018 18:17:18 +0200 Subject: [PATCH] Add missing line breaks feature to Draftail toolbar --- client/src/components/Draftail/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/components/Draftail/index.js b/client/src/components/Draftail/index.js index d9bf0ab7c5..6542841596 100644 --- a/client/src/components/Draftail/index.js +++ b/client/src/components/Draftail/index.js @@ -69,6 +69,7 @@ export const initEditor = (fieldName, options = {}) => { onSave={serialiseInputValue} placeholder={STRINGS.WRITE_HERE} spellCheck={true} + enableLineBreak={true} // If increasing above 4, we will need to add styles for the extra nesting levels. maxListNesting={4} // Draft.js + IE 11 presents some issues with pasting rich text. Disable rich paste there.