I was able to access the content of all fields using this technic:
Copy original strapi Inputs component from strapi-plugin-content-manager to :
extensions/content-manager/admin/src/components/Inputs/index.js
Add at the top Inputs/index.js
import EditViewDataManagerContext from "../../contexts/EditViewDataManager";
before return write:
const context = React.useContext(EditViewDataManagerContext);
and pass to InputsIndex props this data:
contextData={{
modifiedData: context.modifiedData,
initialData: context.initialData,
}}
I’m try to use this technic in my plugin component:
plugins/colorpicker/admin/src/components/colorPicker/index.js
But after call this code inside local plugin:
const context = React.useContext(EditViewDataManagerContext);
I’m recieve : context is undefined.
Can anybody, please, explain to me why components in local plugin don’t access EditViewDataManagerContext ?