From dc4e65b3b9d0fd895c5306e886a179b5a4860626 Mon Sep 17 00:00:00 2001 From: Thibaud Colas Date: Thu, 18 Jan 2018 18:18:23 +0200 Subject: [PATCH] Add missing undo/redo controls in Draftail toolbar --- client/src/components/Draftail/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/components/Draftail/index.js b/client/src/components/Draftail/index.js index 654284159..fbed11f67 100644 --- a/client/src/components/Draftail/index.js +++ b/client/src/components/Draftail/index.js @@ -70,6 +70,8 @@ export const initEditor = (fieldName, options = {}) => { placeholder={STRINGS.WRITE_HERE} spellCheck={true} enableLineBreak={true} + showUndoControl={true} + showRedoControl={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.