Fixed #290: `setText()` not working in mode text or code

This commit is contained in:
jos 2016-04-09 20:11:41 +02:00
parent 4950d6fc39
commit 96304f83a7
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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);
}