MentionAttribute

Api-typedef icon typedef

Represents a mention in the model.

See Mention#toMentionAttribute().

Properties

  • Chevron-right icon

    _text : string

    Helper property that stores the text of the inserted mention. Used for detecting a broken mention in the editing area.

  • Chevron-right icon

    id : string

    The ID of a mention. It identifies the mention item in the mention feed. There can be multiple mentions in the document with the same ID (e.g. the same hashtag being mentioned).

  • Chevron-right icon

    uid : string

    A unique ID of this mention instance. Should be passed as an option.id when using writer.createAttributeElement().