-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
status: unconfirmedtype: bugcode to address defects in shipped codecode to address defects in shipped code
Description
Describe the bug
I have created some custom editor components for modifying content that is rendered in Hugo short codes. I am able to add the custom editor components using the markdown editor, however when I go back to edit the page only some of the editor components are rendered.
To Reproduce
- In index.html for the CMS, register a couple custom editor components. (Here is a gist of my index.html)
- Create a new content item in the CMS using the custom editor components that were added in step 1. You must add multiple of at least one of the components to trigger this bug. (Here is the content with 3 of the components in my content)
- Save the page
- Go to edit the page
Expected behavior
The 3 components should render with their editor component, but the second component shows only the code instead of the editor components.
Applicable Versions:
- Netlify CMS version:
- netlify-cms-app 2.12.11
- netlify-cms-core 2.25.0
- netlify-cms 2.10.47
- Git provider: GitHub
- OS: OSX Catalina
- Browser version: Firefox 75
CMS configuration
Some things I've noticed trying to troubleshoot this:
- If I remove the last component so there are only two on the page, both render fine. It seems to happen when I have multiple of the same type on the page.
- If I change the order of calling
registerEditorComponentso that component 2 is registered before component 1, then component 1 is the one that shows the code in the content instead of component 2. - I am receiving some warnings in the console that say
Sent invalid data to remark
amygroshek, idrisadetunmbi and robinlarsson
Metadata
Metadata
Assignees
Labels
status: unconfirmedtype: bugcode to address defects in shipped codecode to address defects in shipped code