Skip to content

Commit 25bc4d0

Browse files
Admin Panel API typo in example (#2508) (#2515)
* docs(typo): Admin Panel API typo in example * docs(typo): content-manager-apis removed ` at the end of the line Co-authored-by: Martin Schilliger <martin_schilliger@bluewin.ch>
1 parent bc67013 commit 25bc4d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docusaurus/docs/cms/plugins-development/admin-panel-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ Both the `injectComponent()` and `getPlugin('content-manager').injectComponent()
481481

482482
export default {
483483
bootstrap(app) {
484-
app.getPlugin('content-manager').injectComponent()('editView', 'informations', {
484+
app.getPlugin('content-manager').injectComponent('editView', 'informations', {
485485
name: 'my-plugin-my-compo',
486486
Component: () => 'my-compo',
487487
});

docusaurus/docs/cms/plugins-development/content-manager-apis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ All Content Manager APIs works in the same way: to use them, call them on your p
3131
- 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:
3232

3333
```jsx
34-
app.getPlugin('content-manager').apis.addEditViewSidePanel([ReleasesPanel])`
34+
app.getPlugin('content-manager').apis.addEditViewSidePanel([ReleasesPanel])
3535
```
3636

3737
- 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:

0 commit comments

Comments
 (0)