devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
10 lines (9 loc) • 509 B
JavaScript
import { Constants } from '@devexpress/utils/lib/constants';
import { TableCellPropertiesLeafElementDestination } from './table-cell-properties-leaf-element-destination';
export class TableCellColumnSpanDestination extends TableCellPropertiesLeafElementDestination {
async processElementOpen(reader) {
const value = this.data.readerHelper.getWpSTIntegerValue(reader, 'val');
if (value != Constants.MIN_SAFE_INTEGER && value != 0)
this.cell.columnSpan = value;
}
}