devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
28 lines (27 loc) • 1.33 kB
JavaScript
import { DxMimeType } from '@devexpress/utils/lib/utils/mime-type';
export var DocumentFormat;
(function (DocumentFormat) {
DocumentFormat[DocumentFormat["Undefined"] = 0] = "Undefined";
DocumentFormat[DocumentFormat["PlainText"] = 1] = "PlainText";
DocumentFormat[DocumentFormat["Rtf"] = 2] = "Rtf";
DocumentFormat[DocumentFormat["Html"] = 3] = "Html";
DocumentFormat[DocumentFormat["OpenXml"] = 4] = "OpenXml";
DocumentFormat[DocumentFormat["Mht"] = 5] = "Mht";
DocumentFormat[DocumentFormat["WordML"] = 6] = "WordML";
DocumentFormat[DocumentFormat["OpenDocument"] = 7] = "OpenDocument";
DocumentFormat[DocumentFormat["ePub"] = 9] = "ePub";
DocumentFormat[DocumentFormat["Doc"] = 10] = "Doc";
})(DocumentFormat || (DocumentFormat = {}));
export const mimeTypeIntoDocumentFormat = {
[]: DocumentFormat.OpenXml,
[]: DocumentFormat.OpenXml,
[]: DocumentFormat.Rtf,
[]: DocumentFormat.PlainText,
[]: DocumentFormat.Html,
};
export const documentFormatIntoMimeType = {
[]: DxMimeType.OpenXml,
[]: DxMimeType.Rtf,
[]: DxMimeType.PlainText,
[]: DxMimeType.Html,
};