Fixed mode code not reckoning with option escapeUnicode

This commit is contained in:
jos 2016-11-12 10:38:04 +01:00
parent f01f52094e
commit 2bc4cf7dfe
2 changed files with 1 additions and 16 deletions

View File

@ -60,20 +60,4 @@ export default class CodeMode extends TextMode {
this.props.options.onChangeText() this.props.options.onChangeText()
} }
} }
/**
* Set a string containing a JSON document
* @param {string} text
*/
setText (text) {
this.setState({text})
}
/**
* Get the JSON document as text
* @return {string} text
*/
getText () {
return this.state.text
}
} }

View File

@ -177,6 +177,7 @@ export default class TextMode extends Component {
this.setText(event.target.value) this.setText(event.target.value)
if (this.props.options && this.props.options.onChangeText) { if (this.props.options && this.props.options.onChangeText) {
// TODO: pass a diff
this.props.options.onChangeText() this.props.options.onChangeText()
} }
} }