RedactorConfiguration

RedactorConfiguration class

Provides access to a list of supported formats, built-in and custom user formats.

public class RedactorConfiguration

Properties

Name Description
AvailableFormats { get; } Gets a list of recognized formats, see DocumentFormatConfiguration.

Methods

Name Description
static GetInstance() Provides a singleton instance with default configuration of built-in formats.
FindFormat(string) Finds format configurations for a given file extension.

Remarks

Learn more

Examples

The following example demonstrates how to add a custom user format handler.

var adobePhotoshopSettings = new DocumentFormatConfiguration();
adobePhotoshopSettings.ExtensionFilter = ".psd";
adobePhotoshopSettings.DocumentType = typeof(MyAdobePhotoshopFormatInstance);
var configuration = RedactorConfiguration.GetInstance();
configuration.AvailableFormats.Add(adobePhotoshopSettings);

The following example demonstrates how to get built-in or custom user format handlers.

var configuration = RedactorConfiguration.GetInstance();
var formatSettings = configuration.FindFormat(".psd");

See Also