This request may be way out there, but it can’t hurt to ask. Put it in the “Would be cool to have” column.
Maybe as an addon, I’d pay for it 🙂
The mentioned add-on is pretty great even if it has not been updated in a while. Having said that, I am hoping to fork that plugin and update it to acf v5 as well as add some tweaks I would love to see.
If there is any interest, I can let you guys know when I am done with my plugin.
Not that I know of. It’s going to take someone that really needs it and wants to create a new version of the plugin. It appears that the author of the other add on has lost interest and it’s been abandoned.
If I had time and a need for it, but right now I don’t really have either. I could actually think of many placed to use it if it existed but I can get away with using a simple textarea with formatting turned off so unless a client demands a code editor…..
This is pretty easy to sort out with the make your own field type instructions which can be found here:
I knocked together one pretty quickly as a plugin using this and CodeMirror. I only created it for use with CSS and JS code types but it’s pretty easy to implement.
Edit: I should probably point out that by quickly I mean it took less than 30 minutes.
This is great news @ptasker, I’ll definitely give it a try the next time I need a code field, I’m actually working on a project right now that may have need of it. Hopefully you don’t tire of maintaining it because this is something that’s greatly needed. If you’re not going to sell it put up some information on where donations can be sent, I will be happy to support your work if I find it useful.
I just tried out ptasker’s plugin. What a pleasure to be able to use an HTML editor in ACF!
There is an issue with flexible fields. The plugin works for stand-alone fields but the editor fails in flexible fields. In a recent reply in the support thread ptasker says he’s working on this. I’m looking forward to the update with great anticipation because that’s where I really want to use it.
I left him a favorable review and bought him a cup of coffee (Starbucks or Tim Horton’s or whatever they have in the Great White North). If you’re using the plugin and want to see development continue, you should, too!
The topic ‘Code Field’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!