ACF Code Field

설명

Code field for Advanced Custom Fields. Works with ACF versions 4 (free) and 5 (Pro). Based on the Codemirror javascript plugin.

Plugin requires ACF free or pro to be installed to function.

스크린샷

  • Settings page screenshot
  • Editor screenshot with the Monokai theme enabled.

설치

  1. Upload the plugin files to the /wp-content/plugins/acf-code-field directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. In the ACF custom fields manager, the option for the code field will be under the “Field Type” drop down under “Code Tools”

FAQ

What version fo ACF does this work with?

Currently the plugin works with the free (v4) and PRO (v5) versions.

Does the plugin escape or sanitize any data?

It doesn’t. Though Codemirror has several settings to escape data, the plugin doesn’t implement them

후기

2018년 September 7일
Highlighting works fine. But has one issue, breaks Content editors Text Highlighting and formatting when used together with https://wordpress.org/plugins/html-editor-syntax-highlighter/
2018년 February 14일
Easy to setup and it works out of the box. Maybe you could add the field type (acf_code_field) and the other possible attributes to the description.
모든 11 평가 읽기

기여자 & 개발자

“ACF Code Field”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “ACF Code Field”(을)를 번역하십시오.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하십시오.

변경이력

1.8

  • Fix up CodeMirror to update correctly with Gutenberg/new Editor 🎉💪

1.7

  • Using WP Core’s built-in CodeMirror JavaScript and CSS if > WP 4.9

1.6.4

  • Updating tested up to 4.9

1.6.3

  • Readme.txt fix for new UI
  • CSS fix for flexible content areas

1.6.2

  • Loading in all CodeMirror css themes as options for editor colors
  • Adding PHP support to the v4 plugin
  • Updating codemirror to version 5.23

1.6.1

  • Bumping tested up to version

1.6

  • Improvement: Adding PHP language editor support
  • Improvement: Making height automatically grow to the height of the content
  • Bug fix: Hidden panels using the code field need to be clicked on to display contents

1.5

  • Bug Fix: Adding support for flexible content fields
  • Bug Fix: Correctly adding multiple stylesheets if multiple fields themes are selected on the same page

1.0

  • First deploy and commit to wordpress.org repository