nichestudio / acf-markdown
Markdown增强型ACF文本区域
1.1.1
2018-05-21 07:17 UTC
Requires
- php: >=5.4
- cebe/markdown: ^1.2
This package is auto-updated.
Last update: 2024-09-18 18:51:22 UTC
README
Markdown增强型ACF文本区域。
支持与重复器和前端表单(使用 Advanced Forms)一起使用。
使用
- Inscryb/inscryb-markdown-editor 用于编辑器
- cebe/markdown 用于渲染输出
要求
- PHP >=5.4
- Composer
- ACF v5
安装
composer require nichestudio/acf-markdown
自定义编辑器
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; } );