GetInstance

RedactorConfiguration.GetInstance method

Yerleşik biçimlerin varsayılan yapılandırmasıyla tek örnek sağlar.

public static RedactorConfiguration GetInstance()

Geri dönüş değeri

Yapılandırma örneği

Örnekler

Aşağıdaki örnek, özel biçim işleyicisinin nasıl ekleneceğini gösterir.

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

Ayrıca bakınız