devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
15 lines (14 loc) • 666 B
JavaScript
import { InvalidDocumentMode } from '../../../../common/formats/utils/enums';
import { Log } from '../../../../common/rich-utils/debug/logger/base-logger/log';
export class ImporterOptions {
constructor(throwInvalidFile = (reason) => { if (Log.isDebug)
console.log(`LoadedFileIsIncorrect: ${reason}`); }) {
this.invalidDocumentMode = InvalidDocumentMode.OpenAnyway;
this.allowIntPercentage = false;
this.createEmptyDocumentOnLoadError = true;
this.ignoreDeletedText = true;
this.ignoreInsertedText = true;
this.ignoreComments = true;
this.throwInvalidFile = throwInvalidFile;
}
}