15 lines
380 B
JavaScript
15 lines
380 B
JavaScript
import controlComponent from './MarkdownControl';
|
|
import previewComponent from './MarkdownPreview';
|
|
import schema from './schema';
|
|
|
|
const Widget = (opts = {}) => ({
|
|
name: 'markdown',
|
|
controlComponent,
|
|
previewComponent,
|
|
schema,
|
|
...opts,
|
|
});
|
|
|
|
export const NetlifyCmsWidgetMarkdown = { Widget, controlComponent, previewComponent };
|
|
export default NetlifyCmsWidgetMarkdown;
|