GetInstance

RedactorConfiguration.GetInstance method

Menyediakan instance tunggal dengan konfigurasi default format bawaan.

public static RedactorConfiguration GetInstance()

Nilai Pengembalian

Contoh konfigurasi

Contoh

Contoh berikut menunjukkan cara menambahkan penangan format khusus.

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

Lihat juga