GetInstance

RedactorConfiguration.GetInstance method

提供具有内置格式默认配置的单例实例。

public static RedactorConfiguration GetInstance()

返回值

配置实例

例子

以下示例演示如何添加自定义格式处理程序。

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

也可以看看