Open icosamuel opened 6 years ago
<div id="editor"></div> <script> let schema = { schema: "json valid" }; const editor = ace.edit('editor'); editor.setValue(JSON.stringify(schema, null, 2), 1); editor.on('input', () => { try { schema = JSON.parse(this.editor.getValue()); } catch (e) {} }); </script>
TypeError: text is undefined Stack trace: this.$detectNewLine@webpack-internal:///./node_modules/brace/index.js:7707:13 this.insert@webpack-internal:///./node_modules/brace/index.js:7779:13 this.setValue@webpack-internal:///./node_modules/brace/index.js:7687:9 this.setValue@webpack-internal:///./node_modules/brace/index.js:13109:9 ...
my specific usage
relevant stack trace