Skip to content

[Auto-sync] Admin Panel API typo in example (#2508) #2515

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down