UNPKG

devexpress-richedit

Version:

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

12 lines (11 loc) 605 B
import { ParagraphPropertyDescriptor } from '../../../../../../../common/model/paragraph/paragraph-properties'; import { ParagraphFormattingLeafElementDestination } from '../paragraph-formatting-leaf-element-destination'; export class OutlineLevelDestination extends ParagraphFormattingLeafElementDestination { async processElementOpen(reader) { const level = this.data.readerHelper.getWpSTIntegerValue(reader, 'val', 9); this.setProperty(level < 0 || level >= 9 ? 0 : level + 1); } getDescriptor() { return ParagraphPropertyDescriptor.outlineLevel; } }