UNPKG

devexpress-richedit

Version:

DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.

18 lines (17 loc) 724 B
import { DestinationType } from '../utils/destination-type'; import { DestinationBase } from './destination'; export class UnicodeDestination extends DestinationBase { get destinationType() { return DestinationType.UnicodeDestination; } get controlCharHT() { return null; } constructor(importer, lastDestination) { super(importer); this.lastDestination = lastDestination; } createClone() { return new UnicodeDestination(this.importer, this.lastDestination); } static onUdKeyword(importer, _parameterValue, _hasParameter) { const currentDestination = importer.destination; importer.destination = currentDestination.lastDestination; } }