Skip to content
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