MCPcopy Create free account
hub / github.com/decaporg/decap-cms / valueIsMap

Function valueIsMap

packages/decap-cms-widget-code/src/CodeControl.js:199–202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected