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) 678 B
import { StringUtils } from '@devexpress/utils/lib/utils/string'; import { StringValueDestinationBase } from '../base/string-value-destination-base'; import { DestinationType } from '../utils/destination-type'; export class HyperlinkPropertyValueDestination extends StringValueDestinationBase { get destinationType() { return DestinationType.HyperlinkPropertyValueDestination; } _value = []; get value() { return StringUtils.trim(this._value.join('')); } processCharCore(ch) { this._value.push(ch); } createClone() { const clone = this.createEmptyClone(); clone._value = this._value; return clone; } }