Class RichTextPropertyEditor
Represents a rich text property editor.
Namespace: Umbraco.Cms.Core.PropertyEditors
Assembly: Umbraco.Infrastructure.dll
Syntax
public class RichTextPropertyEditor : DataEditor, IDataEditor, IDiscoverable
Constructors
View SourceRichTextPropertyEditor(IDataValueEditorFactory, IIOHelper, IRichTextPropertyIndexValueFactory)
The constructor will setup the property editor based on the attribute if one is found.
Declaration
public RichTextPropertyEditor(IDataValueEditorFactory dataValueEditorFactory, IIOHelper ioHelper, IRichTextPropertyIndexValueFactory richTextPropertyIndexValueFactory)
Parameters
Type | Name | Description |
---|---|---|
IDataValueEditorFactory | dataValueEditorFactory | |
IIOHelper | ioHelper | |
IRichTextPropertyIndexValueFactory | richTextPropertyIndexValueFactory |
Properties
View SourcePropertyIndexValueFactory
Declaration
public override IPropertyIndexValueFactory PropertyIndexValueFactory { get; }
Property Value
Type | Description |
---|---|
IPropertyIndexValueFactory |
SupportsConfigurableElements
Declaration
public override bool SupportsConfigurableElements { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
View SourceCanMergePartialPropertyValues(IPropertyType)
Determines if the value editor needs to perform MergePartialPropertyValueForCulture(Object, Object, String) for a given property type.
Declaration
public override bool CanMergePartialPropertyValues(IPropertyType propertyType)
Parameters
Type | Name | Description |
---|---|---|
IPropertyType | propertyType |
Returns
Type | Description |
---|---|
System.Boolean |
CreateConfigurationEditor()
Declaration
protected override IConfigurationEditor CreateConfigurationEditor()
Returns
Type | Description |
---|---|
IConfigurationEditor |
CreateValueEditor()
Create a custom value editor
Declaration
protected override IDataValueEditor CreateValueEditor()
Returns
Type | Description |
---|---|
IDataValueEditor |
MergePartialPropertyValueForCulture(Object, Object, String)
Partially merges a source property value into a target property value for a given culture.
Declaration
public override object MergePartialPropertyValueForCulture(object sourceValue, object targetValue, string culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sourceValue | The source property value. |
System.Object | targetValue | The target property value. |
System.String | culture | The culture (or null for invariant). |
Returns
Type | Description |
---|---|
System.Object | The result of the merge operation. |