GetInstance

RedactorConfiguration.GetInstance method

Fornisce un’istanza singleton con configurazione predefinita dei formati incorporati.

public static RedactorConfiguration GetInstance()

Valore di ritorno

Istanza di configurazione

Esempi

L’esempio seguente mostra come aggiungere un gestore di formato personalizzato.

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

Guarda anche