Fixed mode code not reckoning with option escapeUnicode
This commit is contained in:
parent
f01f52094e
commit
2bc4cf7dfe
|
@ -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
|
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue