contentful / ui-extensions-sdk

A JavaScript library to develop custom apps for Contentful
https://www.contentful.com/developers/docs/extensibility/app-framework/
MIT License
126 stars 31 forks source link

Entry editor app in bulk editor needs to access useAutoResizer #1844

Open AKlein920 opened 7 months ago

AKlein920 commented 7 months ago

I am working on an entry editor app to manage many options for creating cards. Usually, these individual entries are best shown in the bulk editor interface, so content editors can easily edit many at a time.

However, the useAutoResizer method is not available in the entry editor location. Is there any workaround to properly render the editor app at the correct dimensions?

Screenshot 2024-02-26 at 17 28 10

vipulchadda commented 5 months ago

We are facing the same issue. Also, the bulk editor chooses the first editor and there is no way to switch editors if there are multiple options available.

ethan-ozelius-contentful commented 5 months ago

Disclaimer, this comment likely has very little (to nothing) to do with this particular issue.

@vipulchadda

... Also, the bulk editor chooses the first editor and there is no way to switch editors if there are multiple options available.

Hopefully I'm understanding your issue correctly, but are you able to drag/drop the entry editors order from the content type "Entry Editor" settings? See gif. If this is not the case, could you provide more context/steps to reproduce?

Thanks

entry-editor-fields

vipulchadda commented 5 months ago

@ethan-ozelius-contentful I was talking about the bulk editor for the referenced entries. When bulk editor is not enabled, you have the option to change the editor for the referenced entries but that option is not available for bulk editors.

https://github.com/contentful/ui-extensions-sdk/assets/31496466/8fc2f444-14f1-4bf2-b1cf-86642e109e49

ethan-ozelius-contentful commented 5 months ago

Hello @AKlein920, thank you for raising this issue.

Are you still experiencing this bug? A change was merged a few days ago to fix some CSS outside of the iframe that was interfering with this width and could have been causing this issue.

Since you mentioned that you are working on a custom app, it's difficult for us to debug what could be going wrong, so if you could provide code examples, or specific conflicting CSS rules, and steps to reproduce that would be much appreciated.

Thank you!