Class RichTextEditorPastedImages
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.PropertyEditors
Assembly: Umbraco.Infrastructure.dll
Syntax
public sealed class RichTextEditorPastedImages
Constructors
View SourceRichTextEditorPastedImages(IUmbracoContextAccessor, ILogger<RichTextEditorPastedImages>, IHostingEnvironment, IMediaService, IContentTypeBaseServiceProvider, MediaFileManager, MediaUrlGeneratorCollection, IShortStringHelper, IPublishedUrlProvider)
Declaration
public RichTextEditorPastedImages(IUmbracoContextAccessor umbracoContextAccessor, ILogger<RichTextEditorPastedImages> logger, IHostingEnvironment hostingEnvironment, IMediaService mediaService, IContentTypeBaseServiceProvider contentTypeBaseServiceProvider, MediaFileManager mediaFileManager, MediaUrlGeneratorCollection mediaUrlGenerators, IShortStringHelper shortStringHelper, IPublishedUrlProvider publishedUrlProvider)
Parameters
Type | Name | Description |
---|---|---|
IUmbracoContextAccessor | umbracoContextAccessor | |
ILogger<RichTextEditorPastedImages> | logger | |
IHostingEnvironment | hostingEnvironment | |
IMediaService | mediaService | |
IContentTypeBaseServiceProvider | contentTypeBaseServiceProvider | |
MediaFileManager | mediaFileManager | |
MediaUrlGeneratorCollection | mediaUrlGenerators | |
IShortStringHelper | shortStringHelper | |
IPublishedUrlProvider | publishedUrlProvider |
RichTextEditorPastedImages(IUmbracoContextAccessor, ILogger<RichTextEditorPastedImages>, IHostingEnvironment, IMediaService, IContentTypeBaseServiceProvider, MediaFileManager, MediaUrlGeneratorCollection, IShortStringHelper, IPublishedUrlProvider, IImageUrlGenerator, IOptions<ContentSettings>)
Declaration
public RichTextEditorPastedImages(IUmbracoContextAccessor umbracoContextAccessor, ILogger<RichTextEditorPastedImages> logger, IHostingEnvironment hostingEnvironment, IMediaService mediaService, IContentTypeBaseServiceProvider contentTypeBaseServiceProvider, MediaFileManager mediaFileManager, MediaUrlGeneratorCollection mediaUrlGenerators, IShortStringHelper shortStringHelper, IPublishedUrlProvider publishedUrlProvider, IImageUrlGenerator imageUrlGenerator, IOptions<ContentSettings> contentSettings)
Parameters
Type | Name | Description |
---|---|---|
IUmbracoContextAccessor | umbracoContextAccessor | |
ILogger<RichTextEditorPastedImages> | logger | |
IHostingEnvironment | hostingEnvironment | |
IMediaService | mediaService | |
IContentTypeBaseServiceProvider | contentTypeBaseServiceProvider | |
MediaFileManager | mediaFileManager | |
MediaUrlGeneratorCollection | mediaUrlGenerators | |
IShortStringHelper | shortStringHelper | |
IPublishedUrlProvider | publishedUrlProvider | |
IImageUrlGenerator | imageUrlGenerator | |
IOptions<ContentSettings> | contentSettings |
Methods
View SourceFindAndPersistPastedTempImages(String, Guid, Int32)
Used by the RTE (and grid RTE) for drag/drop/persisting images.
Declaration
public string FindAndPersistPastedTempImages(string html, Guid mediaParentFolder, int userId)
Parameters
Type | Name | Description |
---|---|---|
System.String | html | HTML from the Rich Text Editor property editor. |
Guid | mediaParentFolder | |
System.Int32 | userId |
Returns
Type | Description |
---|---|
System.String | Formatted HTML. |
FindAndPersistPastedTempImages(String, Guid, Int32, IImageUrlGenerator)
Used by the RTE (and grid RTE) for drag/drop/persisting images.
Declaration
public string FindAndPersistPastedTempImages(string html, Guid mediaParentFolder, int userId, IImageUrlGenerator imageUrlGenerator)
Parameters
Type | Name | Description |
---|---|---|
System.String | html | HTML from the Rich Text Editor property editor. |
Guid | mediaParentFolder | |
System.Int32 | userId | |
IImageUrlGenerator | imageUrlGenerator |
Returns
Type | Description |
---|---|
System.String | Formatted HTML. |