Fixed #290: `setText()` not working in mode text or code
This commit is contained in:
parent
4950d6fc39
commit
96304f83a7
|
@ -6,6 +6,7 @@ https://github.com/josdejong/jsoneditor
|
|||
## not yet released, version 5.4.0
|
||||
|
||||
- Upgraded all dependencies.
|
||||
- Fixed #290: `setText()` not working in mode text or code.
|
||||
|
||||
|
||||
## 2016-04-06, version 5.3.0
|
||||
|
|
|
@ -371,6 +371,8 @@ textmode.getText = function() {
|
|||
* @param {String} jsonText
|
||||
*/
|
||||
textmode.setText = function(jsonText) {
|
||||
var text;
|
||||
|
||||
if (this.options.escapeUnicode === true) {
|
||||
text = util.escapeUnicodeChars(jsonText);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue