I'm trying to override rte converter and got the following error
Type 'RtePropertyEditorValueConverter' cannot be an IPropertyValueConverter for property 'text' of content type 'Solutions' because type 'Umbraco.Web.PropertyEditors.ValueConverters.RteMacroRenderingValueConverter' has already been detected as a converter for that property, and only one converter can exist for a property
This is my code:
[PropertyValueCache(PropertyCacheValue.All, PropertyCacheLevel.Request)] [PropertyValueType(typeof(IHtmlString))] public class RtePropertyEditorValueConverter : RteMacroRenderingValueConverter { public override object ConvertDataToSource(PublishedPropertyType propertyType, object source, bool preview) { return source; } }
Trying to override rte converter
Hi All,
I'm trying to override rte converter and got the following error
Type 'RtePropertyEditorValueConverter' cannot be an IPropertyValueConverter for property 'text' of content type 'Solutions' because type 'Umbraco.Web.PropertyEditors.ValueConverters.RteMacroRenderingValueConverter' has already been detected as a converter for that property, and only one converter can exist for a property
This is my code:
I'm wondering whether this is possible?
Thanks, Oleg
Any ideas?
Can anyone help?
Hi Oleg,
I just came across this requirement my self and founf the solution in issue U4-4998.
You need to remove RteMacroRenderingValueConverter from the PropertyValueConvertersResolver.
Cheers,
Ant
Does this help? https://gist.github.com/Jeavon/d0626584762db978f4e8
Jeroen
is working on a reply...