UNPKG

devexpress-richedit

Version:

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

17 lines (16 loc) 648 B
import { StringUtils } from '@devexpress/utils/lib/utils/string'; import { DestinationType } from '../utils/destination-type'; import { StringValueDestinationBase } from './string-value-destination-base'; export class StringValueDestination extends StringValueDestinationBase { get destinationType() { return DestinationType.StringValueDestination; } _value = ""; get value() { return StringUtils.trimEnd(this._value, [";"]); } processCharCore(ch) { this._value += ch; } createClone() { const clone = this.createEmptyClone(); clone._value = this._value; return clone; } }