Open r0emek opened 1 year ago
@r0emek CSV is deprecated atm since I have limited resources to maintain this plugin. So JSON is the only supported type in the code editor. This issue is a feature request, not a bug
Looked like a bug, because currently code editor supports only deprecated JSON not JSONv2
It does support JSON V2, have a look at this section of the doc to format imported data
Importing other type than JSON via text editor import is impossible, There is no control to set type and no data check. Pasting other type results on server error during parsing.
To Reproduce
Expected behavior Data is imported correctly
Screenshots .
Additional context Data is always set as JSON when editor is opened: https://github.com/Baboo7/strapi-plugin-import-export-entries/blob/57c0870023425d2e8a25d4f02346bf9724c4ffcd/src/server/controllers/content-api/import-controller/import-data.js:
const openCodeEditor = () => { setData('{\n\t\n}'); setDataFormat(dataFormats.JSON); };
It would be worth to add similar combo box with types like on export, or check type like in file import.