Skip to content
Snippets Groups Projects
Commit 68b0e3ea authored by chris's avatar chris
Browse files

pass trackChanges prop to actual editor

parent 8f241a8b
No related branches found
No related tags found
No related merge requests found
...@@ -96,13 +96,13 @@ class Editor extends ProseEditor { ...@@ -96,13 +96,13 @@ class Editor extends ProseEditor {
_renderEditor ($$) { _renderEditor ($$) {
const configurator = this.props.configurator const configurator = this.props.configurator
const editing = this.props.disabled ? 'selection' : 'full' const editing = this.props.disabled ? 'selection' : 'full'
return $$(ContainerEditor, { return $$(ContainerEditor, {
editing: editing, editing: editing,
documentSession: this.documentSession, documentSession: this.documentSession,
commands: configurator.getSurfaceCommandNames(), commands: configurator.getSurfaceCommandNames(),
containerId: 'body', containerId: 'body',
textTypes: configurator.getTextTypes() textTypes: configurator.getTextTypes(),
trackChanges: this.props.trackChanges
}).ref('body') }).ref('body')
} }
......
...@@ -88,6 +88,7 @@ export default class SimpleEditor extends React.Component { ...@@ -88,6 +88,7 @@ export default class SimpleEditor extends React.Component {
fragment: this.props.fragment, fragment: this.props.fragment,
history: this.props.history, history: this.props.history,
onSave: onSave, onSave: onSave,
trackChanges: this.props.fragment.trackChanges,
updateComments: this.props.updateComments, updateComments: this.props.updateComments,
user: this.props.user user: this.props.user
}, el) }, el)
...@@ -154,6 +155,7 @@ SimpleEditor.propTypes = { ...@@ -154,6 +155,7 @@ SimpleEditor.propTypes = {
fragment: React.PropTypes.object.isRequired, fragment: React.PropTypes.object.isRequired,
history: React.PropTypes.object.isRequired, history: React.PropTypes.object.isRequired,
onSave: React.PropTypes.func.isRequired, onSave: React.PropTypes.func.isRequired,
trackChanges: React.PropTypes.bool.isRequired,
update: React.PropTypes.func.isRequired, update: React.PropTypes.func.isRequired,
updateComments: React.PropTypes.func.isRequired, updateComments: React.PropTypes.func.isRequired,
user: React.PropTypes.object.isRequired user: React.PropTypes.object.isRequired
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment