You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Textarea field that I've created with Advanced Custom Fields. I have to so that the Textarea is replaced with a CodeMirror field (using plugin ACF Code Field). When I "Update" with the Gutenberg editor, it does not save the contents of the CodeMirror field. I have a feeling this is because the actual Textarea is not being saved. It does save when I'm not using Gutenberg. I submitted a note to the plugin creator about this, but I thought I would also post something here.
To Reproduce
Steps to reproduce the behavior:
Create ACF Code Field
Edit ACF Code Field on Page
Update page with Gutenberg active
/ breaks here
Create ACF Code Field
Edit ACF Code Field on Page
Update page without Gutenberg active
Field is updated!
I've tried this in the latest versions of Firefox and Chrome
Thank you for posting! Would you mind sharing the link where you reported the issue to the plugin creator so we can follow along or did you report that via email or through a private support system that you can't link to?
Thanks for the heads-up, make sure to follow up with in the ACF repo as well. More insights might help us see how we can provide compatibility for this if needed.
I wanted to follow up on this issue. After digging deeper, I have realized it doesn't have anything to do with ACF or the plugin mentioned above. It has to do with how CodeMirror is initialized (by replacing textarea/metabox). Any ideas on how to save the edits to the metabox when CodeMirror is being used and Gutenberg is active on the page? What if everything typed in CodeMirror was copied to textarea using JavaScript?
I have to so that the Textarea is replaced with a CodeMirror field (using plugin ACF Code Field).
If you mean this by a plugin called ACF Code Field, it looks like this plugin is already closed.
Instead I tried Advanced Custom Fields: Extended which allows us to add the code editor field. (This plugin requires ACF Pro version, but luckily I had a permanent license)
From what I've tried with this plugin, it appears to apply CodeMirror to the field and persist code changes even after I save the post and reload the browser.
In any case, I think this issue is an implementation issue when applying Codemirror to Metabox, so I would like to close this issue.
Activity
designsimply commentedon Sep 11, 2018
Thank you for posting! Would you mind sharing the link where you reported the issue to the plugin creator so we can follow along or did you report that via email or through a private support system that you can't link to?
riemerta6 commentedon Sep 11, 2018
https://wordpress.org/support/topic/not-saving-with-gutenberg/
youknowriad commentedon Dec 25, 2018
Is this still an issue? I know both ACF and Gutenberg have been updated to fix conflicts.
riemerta6 commentedon Dec 27, 2018
youknowriad commentedon Dec 27, 2018
Thanks for the heads-up, make sure to follow up with in the ACF repo as well. More insights might help us see how we can provide compatibility for this if needed.
riemerta6 commentedon Apr 13, 2019
I wanted to follow up on this issue. After digging deeper, I have realized it doesn't have anything to do with ACF or the plugin mentioned above. It has to do with how CodeMirror is initialized (by replacing textarea/metabox). Any ideas on how to save the edits to the metabox when CodeMirror is being used and Gutenberg is active on the page? What if everything typed in CodeMirror was copied to textarea using JavaScript?
Add console.warn and comments to help track WordPress-Android issue #…
[Mobile] Fix crash on undefined image url (#15532)
Add console.warn and comments to help track WordPress-Android issue #…
[Mobile] Hotfix release v1.3.1 - Fix crash on undefined image url (#1…
Add console.warn and comments to help track WordPress-Android issue #…
Add console.warn and comments to help track WordPress-Android issue #…
t-hamano commentedon Dec 17, 2023
If you mean this by a plugin called ACF Code Field, it looks like this plugin is already closed.
Instead I tried Advanced Custom Fields: Extended which allows us to add the code editor field. (This plugin requires ACF Pro version, but luckily I had a permanent license)
From what I've tried with this plugin, it appears to apply CodeMirror to the field and persist code changes even after I save the post and reload the browser.
In any case, I think this issue is an implementation issue when applying Codemirror to Metabox, so I would like to close this issue.