Custom Field Editors
environment described in
one built-in object that you can access with the
require method. This object is called
field-editor, and it represents the field itself. The
field-editor.value() method can be used both to
retrieve and set the value of the field.
In order to create a custom field editor you need to:
Create an HTML file containing the field editor definition and deploy it to some location that is accessible from your Content Engine.
Register the field editor you have created in one of your Content Engine configuration layers.
Associate the registered field editor with one or more field definitions in your publication's
content-typeresource (see Using a Custom Field Editor).