DataWeb
Search Results for

    Show / Hide Table of Contents

    Interface IEditorService

    Provides functionality to replace the media URLs (images and documents) in a given text with the corresponding URLs for the specified routes.

    Namespace: DataWeb.Media
    Assembly: DataWeb.Core.dll
    Syntax
    public interface IEditorService

    Methods

    SetMediaLegacyUrls(string, string, string, string)

    Replaces the media URLs (images and documents) in a given text with the corresponding URLs for the specified routes.

    Declaration
    string SetMediaLegacyUrls(string text, string imageRouteName = null, string documentRouteName = null, string templateImageRouteName = null)
    Parameters
    Type Name Description
    string text

    The text to replace the media URLs in.

    string imageRouteName

    The name of the route to use for images.

    string documentRouteName

    The name of the route to use for documents.

    string templateImageRouteName

    The name of the route to use for template images.

    Returns
    Type Description
    string

    The text with the media URLs replaced.

    SetMediaUrls(string, MediaRoute, MediaRoute, MediaRoute, string)

    Replaces the media URLs (images and documents) in a given text with the corresponding URLs for the specified routes.

    Declaration
    string SetMediaUrls(string text, MediaRoute imageRoute = null, MediaRoute documentRoute = null, MediaRoute templateImageRoute = null, string appUrl = null)
    Parameters
    Type Name Description
    string text

    The text to replace the media URLs in.

    MediaRoute imageRoute

    The MediaRoute to use for images.

    MediaRoute documentRoute

    The MediaRoute to use for documents.

    MediaRoute templateImageRoute
    string appUrl

    If set, creates absolute urls.

    Returns
    Type Description
    string

    The text with the media URLs replaced.

    In this article
    Back to top Generated by DocFX