Skip to content

Commit

Permalink
Prevent TinyMCE from accumulating history
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Feb 13, 2018
1 parent daab823 commit b8e2a16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blocks/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
} );
}

Expand Down

0 comments on commit b8e2a16

Please sign in to comment.