* Introduce opt-in option for reusable data editors
* Verified RTE as reusable
* Make attribute property naming more explicit + update comments
* Test file upload and image cropper
* Add unit tests
(cherry picked from commit 44122c6509)
20 lines
632 B
C#
20 lines
632 B
C#
namespace Umbraco.Cms.Core.PropertyEditors;
|
|
|
|
[DataEditor(
|
|
Constants.PropertyEditors.Aliases.UserPicker,
|
|
"User Picker",
|
|
"userpicker",
|
|
ValueType = ValueTypes.Integer,
|
|
Group = Constants.PropertyEditors.Groups.People,
|
|
Icon = Constants.Icons.User,
|
|
ValueEditorIsReusable = true)]
|
|
public class UserPickerPropertyEditor : DataEditor
|
|
{
|
|
public UserPickerPropertyEditor(
|
|
IDataValueEditorFactory dataValueEditorFactory)
|
|
: base(dataValueEditorFactory) =>
|
|
SupportsReadOnly = true;
|
|
|
|
protected override IConfigurationEditor CreateConfigurationEditor() => new UserPickerConfiguration();
|
|
}
|