Created
July 3, 2019 12:36
-
-
Save bjoerntx/b2351311864dc45a44fb3bd198c5e1a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
editor.getSession().on('change', function () { | |
try { | |
$("#editor").notify("Data model updated!", { className: "success" }); | |
var jsonData = editor.getValue(); | |
JSON.parse(jsonData); | |
TXTextControl.loadJsonData(jsonData); | |
} catch (e) { | |
return false; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment