GetInstance

RedactorConfiguration.GetInstance method

Provides a singleton instance with default configuration of built-in formats.

public static RedactorConfiguration GetInstance()

Return Value

Configuration instance

Examples

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

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

See Also