* Validate editor input. Emits 'input-valid' and sets this.data.
()
| 137 | */ |
| 138 | |
| 139 | validate() { |
| 140 | const input = this.editor.getValue() |
| 141 | try { |
| 142 | this.data = json5.parse(input) |
| 143 | this.emit('input-valid') |
| 144 | } catch (e) { |
| 145 | this.data = null |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | /** |
| 150 | * Set the theme dynamically |
no outgoing calls
no test coverage detected