# injectContentManagerComponent() removed

> Source: https://docs.strapi.io/cms/migration/v4-to-v5/breaking-changes/inject-content-manager-component

The `injectContentManagerComponent()` method is removed in Strapi 5 and replaced with `getPlugin('content-manager').injectComponent()` since the Content Manager is now a plugin.

In Strapi 5, the `injectContentManagerComponent` method is removed because the Content Manager is now a plugin. The [Admin Panel API](/cms/plugins-development/admin-injection-zones) method is replaced by `getPlugin('content-manager').injectComponent()`.

This page is part of the [breaking changes database](/cms/migration/v4-to-v5/breaking-changes) and provides information about the breaking change and additional instructions to migrate from Strapi v4 to Strapi 5.

- Is this breaking change affecting plugins? Yes
- Is this breaking change automatically handled by a codemod? No

## Breaking change description

**In Strapi v4**

A component is injected into the Content Manager as follows:

```tsx
app.injectContentManagerComponent('editView', 'right-links', {
    name: 'PreviewButton',
    Component: () => (
      window.alert('Not here, The preview is.')}>Preview
    ),
  });
```

**In Strapi 5**

A component is injected into the Content Manager as follows:

```tsx
app.getPlugin('content-manager').injectComponent('editView', 'right-links', {
    name: 'PreviewButton',
    Component: () => (
      window.alert('Not here, The preview is.')}>Preview
    ),
  });
```

### Migration steps

Change your plugin `index.ts` file from:

  ```js
  app.injectContentManagerComponent()
  ```

to the following:

  ```tsx
  app.getPlugin('content-manager').injectComponent()
  ```
