function

Field

Field constructs a rich-text field with optional configuration. With no Config, it uses the recommended defaults. A supplied Config with omitted Features also inherits those defaults; an explicitly empty Features slice disables them. Embedded block fields retain their attached behavior and presentation. Field panics if more than one Config is supplied.

Arguments

ArgumentTypeDescription
namestringThe name value.
configs[]ConfigThe configs value.

Returns

The declared result.

field.PluginField

Full signature

Related types

  • Config

    Choose a rich-text field's editing tools, allowed collections, blocks, and admin presentation.

  • PluginField

    PluginField configures a field provided by the named Go plugin.