MentionAttribute
typedef
Represents a mention in the model.
Properties
-
_text : string
module:mention/mention~MentionAttribute#_text
Helper property that stores the text of the inserted mention. Used for detecting a broken mention in the editing area.
-
id : string
module:mention/mention~MentionAttribute#id
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).
-
uid : string
module:mention/mention~MentionAttribute#uid
A unique ID of this mention instance. Should be passed as an
option.id
when using writer.createAttributeElement().