devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
16 lines (15 loc) • 825 B
JavaScript
import { __awaiter } from "tslib";
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 {
processElementOpen(reader) {
return __awaiter(this, void 0, void 0, function* () {
const value = this.data.readerHelper.getWpSTOnOffValue(reader, 'val');
this.setProperty(value ? StrikeoutType.Single : StrikeoutType.None);
});
}
getDescriptor() {
return CharacterPropertyDescriptor.strikeoutType;
}
}