devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
13 lines (12 loc) • 711 B
JavaScript
import { CharacterPropertyDescriptor } from '../../../../../../../common/model/character/character-property-descriptor';
import { StrikeoutType } from '../../../../../../../common/model/character/enums';
import { CharacterFormattingLeafElementDestination } from '../character-formatting-leaf-element-destination';
export class SingleStrikeThroughDestination extends CharacterFormattingLeafElementDestination {
async processElementOpen(reader) {
const value = this.data.readerHelper.getWpSTOnOffValue(reader, 'val');
this.setProperty(value ? StrikeoutType.Single : StrikeoutType.None);
}
getDescriptor() {
return CharacterPropertyDescriptor.strikeoutType;
}
}