Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a WordPress Code Editor field type #1096

Closed
garretmh opened this issue Feb 19, 2018 · 2 comments
Closed

Add a WordPress Code Editor field type #1096

garretmh opened this issue Feb 19, 2018 · 2 comments

Comments

@garretmh
Copy link

WordPress 4.9 added the Code Editor API (https://make.wordpress.org/core/2017/10/22/code-editing-improvements-in-wordpress-4-9/) to generate CodeMirror editors. It requires a bit of JavaScript hookup but would allow for much nicer WordPress-official alternative to textarea_code.

@jtsternberg
Copy link
Member

This is a great idea.

@jtsternberg
Copy link
Member

This should probably replace the default behavior for the textarea_code field type, with an options opt-out, e.g. 'options' => array( 'formatted' => false ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants