GetInstance

RedactorConfiguration.GetInstance method

Ger en singleton-instans med standardkonfiguration av inbyggda format.

public static RedactorConfiguration GetInstance()

Returvärde

Konfigurationsinstans

Exempel

Följande exempel visar hur man lägger till en anpassad formathanterare.

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

Se även