From b8e2a16dadccd35ef162ee47189d219bb5e04e94 Mon Sep 17 00:00:00 2001 From: iseulde Date: Tue, 13 Feb 2018 11:58:12 +0100 Subject: [PATCH] Prevent TinyMCE from accumulating history --- blocks/rich-text/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blocks/rich-text/index.js b/blocks/rich-text/index.js index f154d0b53844bd..966483f535a0db 100644 --- a/blocks/rich-text/index.js +++ b/blocks/rich-text/index.js @@ -123,6 +123,9 @@ export class RichText extends Component { return ( this.props.getSettings || identity )( { ...settings, forced_root_block: this.props.multiline || false, + // Allow TinyMCE to keep one undo level for comparing changes. + // Prevent it otherwise from accumulating any history. + custom_undo_redo_levels: 1, } ); }