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

Function Widget

packages/decap-cms-widget-code/src/index.js:5–15  ·  view source on GitHub ↗
(opts = {})

Source from the content-addressed store, hash-verified

3import schema from './schema';
4
5function Widget(opts = {}) {
6 return {
7 name: 'code',
8 controlComponent,
9 previewComponent,
10 schema,
11 allowMapValue: true,
12 codeMirrorConfig: {},
13 ...opts,
14 };
15}
16
17export const DecapCmsWidgetCode = { Widget, controlComponent, previewComponent };
18export default DecapCmsWidgetCode;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected