View Source
Class RichTextEditorPastedImages
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public sealed class RichTextEditorPastedImages
Constructors
View Source
RichTextEditorPastedImages(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
View Source
RichTextEditorPastedImages(IUmbracoContextAccessor, ILogger<RichTextEditorPastedImages>, IHostingEnvironment, IMediaService, IContentTypeBaseServiceProvider, MediaFileManager, MediaUrlGeneratorCollection, IShortStringHelper, IPublishedUrlProvider, ITemporaryFileService, IScopeProvider, IMediaImportService, 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, ITemporaryFileService temporaryFileService, IScopeProvider scopeProvider, IMediaImportService mediaImportService, IImageUrlGenerator imageUrlGenerator, IOptions<ContentSettings> contentSettings)
Parameters
View Source
RichTextEditorPastedImages(IUmbracoContextAccessor, IPublishedUrlProvider, ITemporaryFileService, IScopeProvider, IMediaImportService, IImageUrlGenerator)
Declaration
public RichTextEditorPastedImages(IUmbracoContextAccessor umbracoContextAccessor, IPublishedUrlProvider publishedUrlProvider, ITemporaryFileService temporaryFileService, IScopeProvider scopeProvider, IMediaImportService mediaImportService, IImageUrlGenerator imageUrlGenerator)
Parameters
Methods
View Source
FindAndPersistPastedTempImages(String, Guid, Int32)
Declaration
public string FindAndPersistPastedTempImages(string html, Guid mediaParentFolder, int userId)
Parameters
Type |
Name |
Description |
System.String |
html |
|
Guid |
mediaParentFolder |
|
System.Int32 |
userId |
|
Returns
Type |
Description |
System.String |
|
View Source
FindAndPersistPastedTempImages(String, Guid, Int32, IImageUrlGenerator)
Declaration
public string FindAndPersistPastedTempImages(string html, Guid mediaParentFolder, int userId, IImageUrlGenerator imageUrlGenerator)
Parameters
Type |
Name |
Description |
System.String |
html |
|
Guid |
mediaParentFolder |
|
System.Int32 |
userId |
|
IImageUrlGenerator |
imageUrlGenerator |
|
Returns
Type |
Description |
System.String |
|
View Source
FindAndPersistPastedTempImagesAsync(String, Guid, Guid)
Used by the RTE (and grid RTE) for drag/drop/persisting images.
Declaration
public async Task<string> FindAndPersistPastedTempImagesAsync(string html, Guid mediaParentFolder, Guid userKey)
Parameters
Type |
Name |
Description |
System.String |
html |
|
Guid |
mediaParentFolder |
|
Guid |
userKey |
|
Returns
Type |
Description |
Task<System.String> |
|