()
| 197 | // Determine if the persisted value is a map rather than a plain string. A map |
| 198 | // value allows both the code string and the language to be persisted. |
| 199 | valueIsMap() { |
| 200 | const { field, isEditorComponent } = this.props; |
| 201 | return !field.get('output_code_only') || isEditorComponent; |
| 202 | } |
| 203 | |
| 204 | async handleChangeCodeMirrorProps(changedProps, ignoreLangChange = false) { |
| 205 | const { onChange } = this.props; |