Editor

Kirki Editor control

The Editor the control renders a rich-text editor in the WordPress Customizer. The editor is the same WYSIWYG editor that WordPress used to use.

Example

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

Was this helpful?