From 68c1e222a3472972f9a9dbaa134600cc0d8a24cb Mon Sep 17 00:00:00 2001 From: Martin Schilliger Date: Wed, 4 Jun 2025 11:07:28 +0200 Subject: [PATCH] Admin Panel API typo in example (#2508) * docs(typo): Admin Panel API typo in example * docs(typo): content-manager-apis removed ` at the end of the line --- docusaurus/docs/cms/plugins-development/admin-panel-api.md | 2 +- docusaurus/docs/cms/plugins-development/content-manager-apis.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docusaurus/docs/cms/plugins-development/admin-panel-api.md b/docusaurus/docs/cms/plugins-development/admin-panel-api.md index c89115c91d..f803eefdde 100644 --- a/docusaurus/docs/cms/plugins-development/admin-panel-api.md +++ b/docusaurus/docs/cms/plugins-development/admin-panel-api.md @@ -481,7 +481,7 @@ Both the `injectComponent()` and `getPlugin('content-manager').injectComponent() export default { bootstrap(app) { - app.getPlugin('content-manager').injectComponent()('editView', 'informations', { + app.getPlugin('content-manager').injectComponent('editView', 'informations', { name: 'my-plugin-my-compo', Component: () => 'my-compo', }); diff --git a/docusaurus/docs/cms/plugins-development/content-manager-apis.md b/docusaurus/docs/cms/plugins-development/content-manager-apis.md index 6941c87938..d2081475c8 100644 --- a/docusaurus/docs/cms/plugins-development/content-manager-apis.md +++ b/docusaurus/docs/cms/plugins-development/content-manager-apis.md @@ -31,7 +31,7 @@ All Content Manager APIs works in the same way: to use them, call them on your p - Passing an array with what you want to add. For example, the following code would add the ReleasesPanel at the end of the current EditViewSidePanels: ```jsx - app.getPlugin('content-manager').apis.addEditViewSidePanel([ReleasesPanel])` + app.getPlugin('content-manager').apis.addEditViewSidePanel([ReleasesPanel]) ``` - Passing a function that receives the current elements and return the new ones. This is useful if, for example, you want to add something in a specific position in the list, like in the following code: