From cba4240fa9af6ca33f9eaa7fd7369b544cd02897 Mon Sep 17 00:00:00 2001 From: Shawn Erquhart Date: Fri, 5 Jan 2018 21:21:21 +0000 Subject: [PATCH 1/2] =?UTF-8?q?Update=20Docs=20=E2=80=9Ccustom-widgets?= =?UTF-8?q?=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/site/content/docs/custom-widgets.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/website/site/content/docs/custom-widgets.md b/website/site/content/docs/custom-widgets.md index 95439e1e..2190a586 100644 --- a/website/site/content/docs/custom-widgets.md +++ b/website/site/content/docs/custom-widgets.md @@ -25,11 +25,11 @@ CMS.registerWidget(name, control, \[preview\]) **Params:** -| Param | Type | Description | -| ----------- | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `name` | string | Widget name, allows this widget to be used via the field `widget` property in config | -| `control` | React.Component | string | | -| [`preview`] | React.Component, optional | Renders the widget preview, receives the following props: | +| Param | Type | Description | | +| ----------- | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `name` | string | Widget name, allows this widget to be used via the field `widget` property in config | | +| `control` | React.Component | string | | +| [`preview`] | React.Component, optional | Renders the widget preview, receives the following props: | | * **field:** The field type that this widget will be used for. * **control:** A React component that renders the editing interface for this field. Two props will be passed: @@ -116,7 +116,7 @@ CMS.registerEditorComponent({ **Result:** -![youtube-widget](/img/youtube-widget.png) +![youtube-widget](/img/screen shot 2018-01-05 at 4.19.26 pm.png) ## Advanced field validation From a696bb359811f692d9ca15092af4af714d7f547f Mon Sep 17 00:00:00 2001 From: Shawn Erquhart Date: Fri, 5 Jan 2018 21:25:35 +0000 Subject: [PATCH 2/2] =?UTF-8?q?Update=20Docs=20=E2=80=9Ccustom-widgets?= =?UTF-8?q?=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/site/content/docs/custom-widgets.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/site/content/docs/custom-widgets.md b/website/site/content/docs/custom-widgets.md index 2190a586..4b84ee03 100644 --- a/website/site/content/docs/custom-widgets.md +++ b/website/site/content/docs/custom-widgets.md @@ -116,7 +116,7 @@ CMS.registerEditorComponent({ **Result:** -![youtube-widget](/img/screen shot 2018-01-05 at 4.19.26 pm.png) +![youtube-widget](/img/screen shot 2018-01-05 at 4.25.07 pm.png) ## Advanced field validation