Provides access to configuration options for Richtext behavior within an application such as CoreMedia Studio.

The application is required providing an implementation for this interface to use plugins based on this configuration.

interface RichtextConfigurationService {
    hasLinkableType(uriPath): Promise<boolean>;
    isEmbeddableType(uriPath): Promise<boolean>;
    resolveBlobPropertyReference(uriPath): Promise<string>;
}

Implemented by

    Methods

    • Resolves the URI-Path to a Blob-Property reference, which then may be used as xlink:href for <img> elements.

      Producers have to transform the given URI-path like content/42 to some blob-property reference, such as content/42#properties.data. In general, the method is only called, when a content has previously been identified as being embeddable.

      Parameters

      • uriPath: string

        URI path of the entity such as content/42

      Returns Promise<string>