Skip to content
This repository has been archived by the owner on Feb 10, 2020. It is now read-only.

Latest commit

 

History

History
44 lines (29 loc) · 706 Bytes

rich-text.md

File metadata and controls

44 lines (29 loc) · 706 Bytes

rich-text

image

placeholder:

  • Type: String
  • Required: No

label:

A label for the field.

  • Type: String
  • Required: No

help:

Used to add help text below the field.

  • Type: String
  • Required: No

For full documentation read gutenberg readme.

Example:

text: {
	type: 'string',
	field: {
		type: 'rich-text',
		placeholder: __( 'Enter text' ),
	},
	source: 'children',
	selector: '.rich-text',
}

Return

This will return rich-text output.

  • Type: string