View Source
Class RteMacroRenderingValueConverter
A value converter for TinyMCE that will ensure any macro content is rendered properly even when
used dynamically.
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public class RteMacroRenderingValueConverter : SimpleTinyMceValueConverter, IDeliveryApiPropertyValueConverter, IPropertyValueConverter, IDiscoverable
Constructors
View Source
RteMacroRenderingValueConverter(IUmbracoContextAccessor, IMacroRenderer, HtmlLocalLinkParser, HtmlUrlParser, HtmlImageSourceParser)
Declaration
public RteMacroRenderingValueConverter(IUmbracoContextAccessor umbracoContextAccessor, IMacroRenderer macroRenderer, HtmlLocalLinkParser linkParser, HtmlUrlParser urlParser, HtmlImageSourceParser imageSourceParser)
Parameters
View Source
RteMacroRenderingValueConverter(IUmbracoContextAccessor, IMacroRenderer, HtmlLocalLinkParser, HtmlUrlParser, HtmlImageSourceParser, IApiRichTextElementParser, IApiRichTextMarkupParser, IOptionsMonitor<DeliveryApiSettings>)
Declaration
public RteMacroRenderingValueConverter(IUmbracoContextAccessor umbracoContextAccessor, IMacroRenderer macroRenderer, HtmlLocalLinkParser linkParser, HtmlUrlParser urlParser, HtmlImageSourceParser imageSourceParser, IApiRichTextElementParser apiRichTextElementParser, IApiRichTextMarkupParser apiRichTextMarkupParser, IOptionsMonitor<DeliveryApiSettings> deliveryApiSettingsMonitor)
Parameters
View Source
RteMacroRenderingValueConverter(IUmbracoContextAccessor, IMacroRenderer, HtmlLocalLinkParser, HtmlUrlParser, HtmlImageSourceParser, IApiRichTextElementParser, IApiRichTextMarkupParser, IPartialViewBlockEngine, BlockEditorConverter, IJsonSerializer, IApiElementBuilder, RichTextBlockPropertyValueConstructorCache, ILogger<RteMacroRenderingValueConverter>, IOptionsMonitor<DeliveryApiSettings>)
Declaration
public RteMacroRenderingValueConverter(IUmbracoContextAccessor umbracoContextAccessor, IMacroRenderer macroRenderer, HtmlLocalLinkParser linkParser, HtmlUrlParser urlParser, HtmlImageSourceParser imageSourceParser, IApiRichTextElementParser apiRichTextElementParser, IApiRichTextMarkupParser apiRichTextMarkupParser, IPartialViewBlockEngine partialViewBlockEngine, BlockEditorConverter blockEditorConverter, IJsonSerializer jsonSerializer, IApiElementBuilder apiElementBuilder, RichTextBlockPropertyValueConstructorCache constructorCache, ILogger<RteMacroRenderingValueConverter> logger, IOptionsMonitor<DeliveryApiSettings> deliveryApiSettingsMonitor)
Parameters
Methods
View Source
ConvertIntermediateToDeliveryApiObject(IPublishedElement, IPublishedPropertyType, PropertyCacheLevel, Object, Boolean, Boolean)
Declaration
public object ConvertIntermediateToDeliveryApiObject(IPublishedElement owner, IPublishedPropertyType propertyType, PropertyCacheLevel referenceCacheLevel, object inter, bool preview, bool expanding)
Parameters
Returns
Type |
Description |
System.Object |
|
View Source
ConvertIntermediateToObject(IPublishedElement, IPublishedPropertyType, PropertyCacheLevel, Object, Boolean)
Declaration
public override object ConvertIntermediateToObject(IPublishedElement owner, IPublishedPropertyType propertyType, PropertyCacheLevel referenceCacheLevel, object inter, bool preview)
Parameters
Returns
Type |
Description |
System.Object |
|
View Source
ConvertSourceToIntermediate(IPublishedElement, IPublishedPropertyType, Object, Boolean)
Declaration
public override object ConvertSourceToIntermediate(IPublishedElement owner, IPublishedPropertyType propertyType, object source, bool preview)
Parameters
Returns
Type |
Description |
System.Object |
|
View Source
GetDeliveryApiPropertyCacheLevel(IPublishedPropertyType)
Declaration
public PropertyCacheLevel GetDeliveryApiPropertyCacheLevel(IPublishedPropertyType propertyType)
Parameters
Returns
View Source
GetDeliveryApiPropertyCacheLevelForExpansion(IPublishedPropertyType)
Declaration
public PropertyCacheLevel GetDeliveryApiPropertyCacheLevelForExpansion(IPublishedPropertyType propertyType)
Parameters
Returns
View Source
GetDeliveryApiPropertyValueType(IPublishedPropertyType)
Declaration
public Type GetDeliveryApiPropertyValueType(IPublishedPropertyType propertyType)
Parameters
Returns
View Source
GetPropertyCacheLevel(IPublishedPropertyType)
Declaration
public override PropertyCacheLevel GetPropertyCacheLevel(IPublishedPropertyType propertyType)
Parameters
Returns