devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
12 lines (11 loc) • 595 B
JavaScript
import { ParagraphPropertyDescriptor } from '../../../../../../../common/model/paragraph/paragraph-properties';
import { ShadingHelper } from '../../shading/shading-helper';
import { ParagraphFormattingLeafElementDestination } from '../paragraph-formatting-leaf-element-destination';
export class ParagraphShadingDestination extends ParagraphFormattingLeafElementDestination {
async processElementOpen(reader) {
this.setProperty(ShadingHelper.getShadingValue(this.data, reader));
}
getDescriptor() {
return ParagraphPropertyDescriptor.shadingInfo;
}
}