Open drager opened 2 years ago
Changed it into an app
instead but I get the same issue. Perhaps the problem is the content type that I'm using? Doesn't it support the JSON object field type?
Seems to be working fine with Text
and Rich text
field types.
Hey @drager, how did you solve the issue? I'm facing the same limitation.
I have the same issue, still looking for a solution.
I didn't need to fix it anymore. I went and used an other field type. But my pr ☝️ got it working for SingleMediaEditor.
Hi @drager - any plans to update your PR? Also experiencing the same issue :)
Marking issue as stale since there was no acitivty for 30 days
I have the same issue, also looking for a solution.
function Field() {
const sdk = useSDK<FieldExtensionSDK>();
return (
<SingleMediaEditor
viewType="link"
sdk={sdk}
isInitiallyDisabled={false}
parameters={{
instance: {
showCreateEntityAction: false,
showLinkEntityAction: true,
},
}}
/>
);
}
export default Field;
Marking issue as stale since there was no acitivty for 30 days
Ran into the same issue. In my case the problem was that the field is configured as a multi media / multi reference but the editor is a singleMediaEditor. Updating the field or the editor fixed it.
Marking issue as stale since there was no activity for 30 days
Hey, I'm trying to use the
SingleMediaEditor
in an custom contentful extension with a field type that is JSON object but it throws the following error:That is here: https://github.com/contentful/field-editors/blob/3dc7130a751de690903c572edfcdfdf3587b57bf/packages/reference/src/common/SingleReferenceEditor.tsx#L84
Here's the sample app code: