()
| 100 | }; |
| 101 | |
| 102 | get_value() { |
| 103 | if (this.code_mirror) |
| 104 | return this.code_mirror.getValue(); |
| 105 | |
| 106 | return this.element.find('textarea').val(); |
| 107 | }; |
| 108 | |
| 109 | check_valid(): boolean { |
| 110 | if (this.code_mirror && this.spec.required && !this.get_value()) { |