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

Add ability to remove entry editors #1158

Open
jojoolson9 opened this issue Dec 19, 2022 · 1 comment
Open

Add ability to remove entry editors #1158

jojoolson9 opened this issue Dec 19, 2022 · 1 comment

Comments

@jojoolson9
Copy link

Hey folks! I'd like the ability to remove Entry editors. While you can set additional ones with https://www.npmjs.com/package/contentful-migration#configureentryeditors-entryeditor--void, I am not able to REMOVE anything.

For instance, I'd like to keep the default built-in editor and built-in tab, but remove the built-in references. This can be done manually: https://www.contentful.com/help/remove-reference-view/.

Example code I tried that did not remove the references entry editor, just shifted so that the other two were first.

const contentTypeEditor = migration.editContentType("contentType");
contentTypeEditor.configureEntryEditors([
    { widgetNamespace: "editor-builtin", widgetId: "default-editor" },
    { widgetNamespace: "editor-builtin", widgetId: "tags-editor" },
]);

If this is already possible, please let me know, but I couldn't determine a solution based on the docs 😅 Thanks!

@joaoghummel
Copy link

You can use:

{
  settings: {},
  widgetId: 'default-editor',
  widgetNamespace: 'editor-builtin',
  disabled: true
}

It worked for builtin editors, not custom ones, unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants