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
| Argument | Type | Description |
|---|---|---|
name | string | The name value. |
configs | []Config | The configs value. |
Returns
The declared result.
field.PluginFieldFull signature
func Field(
name string,
configs ...Config,
) field.PluginFieldRelated types
ConfigChoose a rich-text field's editing tools, allowed collections, blocks, and admin presentation.
PluginFieldPluginField configures a field provided by the named Go plugin.