ソースを参照

Add missing line breaks feature to Draftail toolbar

Thibaud Colas 7 年 前
コミット
fe21055b8e
1 ファイル変更1 行追加0 行削除
  1. 1 0
      client/src/components/Draftail/index.js

+ 1 - 0
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.