Skip to content

nichestudio/ACF-Markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACF Markdown Field

Markdown-enhanced ACF textarea.

Works with repeaters and even frontend forms using Advanced Forms.

Uses

Requires:

  • PHP >=5.4
  • Composer
  • ACF v5

Installation

composer require nichestudio/acf-markdown

Customise Editor

Override the Inscryb editor options:

acf.add_filter( 'niche_markdown/inscrybmde_args', function ( args, field ) {

	if ( field.o.id === 'field_xxxx' ) {
		args[ 'placeholder' ] = 'Enter your content using Markdown';
	}

	return args;
} );