Ejemplo n.º 1
0
 public RichTextPropertyEditor(
     IDataValueEditorFactory dataValueEditorFactory,
     IBackOfficeSecurityAccessor backOfficeSecurityAccessor,
     HtmlImageSourceParser imageSourceParser,
     HtmlLocalLinkParser localLinkParser,
     RichTextEditorPastedImages pastedImages,
     IIOHelper ioHelper,
     IImageUrlGenerator imageUrlGenerator,
     IHtmlMacroParameterParser macroParameterParser)
     : this(
         dataValueEditorFactory,
         backOfficeSecurityAccessor,
         imageSourceParser,
         localLinkParser,
         pastedImages,
         ioHelper,
         imageUrlGenerator,
         macroParameterParser,
         StaticServiceProvider.Instance.GetRequiredService <IEditorConfigurationParser>())
 {
     _backOfficeSecurityAccessor = backOfficeSecurityAccessor;
     _imageSourceParser          = imageSourceParser;
     _localLinkParser            = localLinkParser;
     _pastedImages         = pastedImages;
     _ioHelper             = ioHelper;
     _imageUrlGenerator    = imageUrlGenerator;
     _macroParameterParser = macroParameterParser;
 }
 /// <summary>
 /// The constructor will setup the property editor based on the attribute if one is found.
 /// </summary>
 public RichTextPropertyEditor(
     IDataValueEditorFactory dataValueEditorFactory,
     IBackOfficeSecurityAccessor backOfficeSecurityAccessor,
     HtmlImageSourceParser imageSourceParser,
     HtmlLocalLinkParser localLinkParser,
     RichTextEditorPastedImages pastedImages,
     IIOHelper ioHelper,
     IImageUrlGenerator imageUrlGenerator,
     IHtmlMacroParameterParser macroParameterParser)
     : base(dataValueEditorFactory)
 {
     _backOfficeSecurityAccessor = backOfficeSecurityAccessor;
     _imageSourceParser          = imageSourceParser;
     _localLinkParser            = localLinkParser;
     _pastedImages         = pastedImages;
     _ioHelper             = ioHelper;
     _imageUrlGenerator    = imageUrlGenerator;
     _macroParameterParser = macroParameterParser;
 }
 public RichTextPropertyValueEditor(
     DataEditorAttribute attribute,
     IBackOfficeSecurityAccessor backOfficeSecurityAccessor,
     ILocalizedTextService localizedTextService,
     IShortStringHelper shortStringHelper,
     HtmlImageSourceParser imageSourceParser,
     HtmlLocalLinkParser localLinkParser,
     RichTextEditorPastedImages pastedImages,
     IImageUrlGenerator imageUrlGenerator,
     IJsonSerializer jsonSerializer,
     IIOHelper ioHelper,
     IHtmlSanitizer htmlSanitizer,
     IHtmlMacroParameterParser macroParameterParser)
     : base(localizedTextService, shortStringHelper, jsonSerializer, ioHelper, attribute)
 {
     _backOfficeSecurityAccessor = backOfficeSecurityAccessor;
     _imageSourceParser          = imageSourceParser;
     _localLinkParser            = localLinkParser;
     _pastedImages         = pastedImages;
     _imageUrlGenerator    = imageUrlGenerator;
     _htmlSanitizer        = htmlSanitizer;
     _macroParameterParser = macroParameterParser;
 }
Ejemplo n.º 4
0
 public GridPropertyValueEditor(
     IDataValueEditorFactory dataValueEditorFactory,
     DataEditorAttribute attribute,
     IBackOfficeSecurityAccessor backOfficeSecurityAccessor,
     ILocalizedTextService localizedTextService,
     HtmlImageSourceParser imageSourceParser,
     RichTextEditorPastedImages pastedImages,
     IShortStringHelper shortStringHelper,
     IImageUrlGenerator imageUrlGenerator,
     IJsonSerializer jsonSerializer,
     IIOHelper ioHelper,
     IHtmlMacroParameterParser macroParameterParser)
     : base(localizedTextService, shortStringHelper, jsonSerializer, ioHelper, attribute)
 {
     _backOfficeSecurityAccessor = backOfficeSecurityAccessor;
     _imageSourceParser          = imageSourceParser;
     _pastedImages = pastedImages;
     _richTextPropertyValueEditor =
         dataValueEditorFactory.Create <RichTextPropertyEditor.RichTextPropertyValueEditor>(attribute);
     _mediaPickerPropertyValueEditor =
         dataValueEditorFactory.Create <MediaPickerPropertyEditor.MediaPickerPropertyValueEditor>(attribute);
     _imageUrlGenerator    = imageUrlGenerator;
     _macroParameterParser = macroParameterParser;
 }