editor

The editor control renders a rich-text editor in the WordPress Customizer. This editor is the same that WordPress-Core uses in its default widgets, so not all buttons and capabilities are available.

Example

Kirki::add_field( 'theme_config_id', [
	'type'        => 'editor',
	'settings'    => 'editor_setting',
	'label'       => esc_html__( 'My Editor Control', 'kirki' ),
	'description' => esc_html__( 'This is an editor control.', 'kirki' ),
	'section'     => 'section_id',
	'default'     => '',
] );

Last updated on: May 10th, 2020

Scroll to Top

Download

Subscribe & be the first to be informed about
new features & updates!