UNPKG

devexpress-richedit

Version:

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

12 lines (11 loc) 634 B
import { StringUtils } from '@devexpress/utils/lib/utils/string'; import { UnicodeStringValueDestination } from '../base/unicode-string-value-destination'; import { DestinationType } from '../utils/destination-type'; export class BookmarkDestinationBase extends UnicodeStringValueDestination { get destinationType() { return DestinationType.HexContentDestination; } afterPopRtfState() { const bookmarkName = StringUtils.trim(this.value); if (!StringUtils.isNullOrEmpty(bookmarkName)) this.assignBookmarkPosition(this.importer.importers.bookmark.getBookmarkByName(bookmarkName)); } }