devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
10 lines (9 loc) • 839 B
JavaScript
import { TableCellPropertyDescriptor } from '../../../../../../../../common/model/tables/properties/table-cell-properties';
import { TableCellVerticalAlignment } from '../../../../../../../../common/model/tables/secondary-structures/table-base-structures';
import { TranslationTables } from '../../../../../translation-table/translation-tables';
import { TableCellPropertiesLeafElementDestination } from './table-cell-properties-leaf-element-destination';
export class TableCellVerticalAlignmentDestination extends TableCellPropertiesLeafElementDestination {
async processElementOpen(reader) {
this.cell.properties.setValue(TableCellPropertyDescriptor.vertivalAlignment, this.data.readerHelper.getWpEnumValue(reader, 'val', TranslationTables.verticalAlignmentTable.importMap, TableCellVerticalAlignment.Top));
}
}