Reference a Custom Property Editor by Editor Attribute

A component property can reference a custom property editor directly through the editor attribute. The editor attribute is a reference to a custom property editor by a fullyQualifiedName string. This option is best if you want only to override the default user experience, without needing the additional validations of a custom property type.

In the Custom Article component example in the sample components, you specify an editor reference to the custom alignmentCPE for the textAlignment property.

Don't use the editor attribute for a property if the property's type attribute references a custom LightningTypeBundle. Instead, specify the editor component as a component override in the editor.json file of the custom LightningTypeBundle. See Lightning Type UI Configuration for details.

See Also