From 3c3274939b40b7c1ce67f35b436ead41a6f479b9 Mon Sep 17 00:00:00 2001 From: Sofia Sousa Date: Wed, 26 Sep 2018 15:12:36 +0100 Subject: [PATCH] Fix/docs links (#10189) * docs: Fix plugins link in edit-post readme * docs: Fix edit-post link in plugins readme * docs: Update data-core-editor docs (auto-generate) --- docs/data/data-core-editor.md | 23 ++++++++++++++++++++++- edit-post/README.md | 6 +++--- packages/plugins/README.md | 2 +- 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/docs/data/data-core-editor.md b/docs/data/data-core-editor.md index 295cbcde3f1460..405022aafd29e2 100644 --- a/docs/data/data-core-editor.md +++ b/docs/data/data-core-editor.md @@ -1253,6 +1253,19 @@ Returns whether or not the user has the unfiltered_html capability. Whether the user can or can't post unfiltered HTML. +### isPublishSidebarEnabled + +Returns whether the pre-publish panel should be shown +or skipped when the user clicks the "publish" button. + +*Parameters* + + * state: Global application state. + +*Returns* + +Whether the pre-publish panel should be shown or not. + ## Actions ### setupEditor @@ -1633,4 +1646,12 @@ Returns an action object used in signalling that the editor settings have been u *Parameters* - * settings: Updated settings \ No newline at end of file + * settings: Updated settings + +### enablePublishSidebar + +Returns an action object used in signalling that the user has enabled the publish sidebar. + +### disablePublishSidebar + +Returns an action object used in signalling that the user has disabled the publish sidebar. \ No newline at end of file diff --git a/edit-post/README.md b/edit-post/README.md index f03ae16000e0c6..74db4920f4c047 100644 --- a/edit-post/README.md +++ b/edit-post/README.md @@ -2,7 +2,7 @@ Extending the editor UI can be accomplished with the `registerPlugin` API, allowing you to define all your plugin's UI elements in one place. -Refer to [the plugins module documentation](../plugins/) for more information. +Refer to [the plugins module documentation](../packages/plugins/) for more information. ## Plugin Components @@ -49,7 +49,7 @@ const doOnClick = ( ) => { }; const MyPluginBlockSettingsMenuItem = () => ( -