diff --git a/app/components/SimpleEditor/Editor.js b/app/components/SimpleEditor/Editor.js index 0b1a223fec00182d4cdf3f0971f7031c8e6c8ed6..739b18f6a234df2d1a72a8db128df6bee01d1290 100644 --- a/app/components/SimpleEditor/Editor.js +++ b/app/components/SimpleEditor/Editor.js @@ -96,13 +96,13 @@ class Editor extends ProseEditor { _renderEditor ($$) { const configurator = this.props.configurator const editing = this.props.disabled ? 'selection' : 'full' - return $$(ContainerEditor, { editing: editing, documentSession: this.documentSession, commands: configurator.getSurfaceCommandNames(), containerId: 'body', - textTypes: configurator.getTextTypes() + textTypes: configurator.getTextTypes(), + trackChanges: this.props.trackChanges }).ref('body') } diff --git a/app/components/SimpleEditor/SimpleEditor.jsx b/app/components/SimpleEditor/SimpleEditor.jsx index b653a5f75ac0efb7cfc1fc6c6ca83e743b6b16b5..4e5a19db8101ef2ca8895d5a5ed256f3de2013be 100644 --- a/app/components/SimpleEditor/SimpleEditor.jsx +++ b/app/components/SimpleEditor/SimpleEditor.jsx @@ -88,6 +88,7 @@ export default class SimpleEditor extends React.Component { fragment: this.props.fragment, history: this.props.history, onSave: onSave, + trackChanges: this.props.fragment.trackChanges, updateComments: this.props.updateComments, user: this.props.user }, el) @@ -154,6 +155,7 @@ SimpleEditor.propTypes = { fragment: React.PropTypes.object.isRequired, history: React.PropTypes.object.isRequired, onSave: React.PropTypes.func.isRequired, + trackChanges: React.PropTypes.bool.isRequired, update: React.PropTypes.func.isRequired, updateComments: React.PropTypes.func.isRequired, user: React.PropTypes.object.isRequired