UNPKG

devexpress-richedit

Version:

DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.

10 lines (9 loc) 468 B
import { Constants } from '@devexpress/utils/lib/constants'; import { LeafElementDestination } from '../destination'; export class DocumentSettingsDefaultTabStopDestination extends LeafElementDestination { async processElementOpen(reader) { const value = this.data.readerHelper.getWpSTIntegerValue(reader, 'val', Constants.MIN_SAFE_INTEGER); if (value > 0) this.data.documentModel.defaultTabWidth = Math.max(1, value); } }