Using a Custom Field Editor
To make use of custom field editor in a publication, all you need to do
is associate it with the required fields in the publication's
content-type
resource. You do this by including a
ui:editor
element as a child of the require
field
elements. For example:
<field name="brightness" type="basic" mime-type="text/plain"> <ui:label>Brightness</ui:label> <ui:editor type="html" name="slider"/> </field>
The type
attribute must always be set to
html
. The name
attribute must
reference one of the entries in the
NamedServiceResolver.properties
file (see
Registering a Custom Field Editor).