Composer: Prevent URL links converting to text lings when editing
This commit is contained in:
parent
b6abe0ee7c
commit
8102342412
@ -142,6 +142,9 @@ function getEntityTypeFromNode(node: ChildNode) {
|
||||
if (anchor.dataset.entityType === ApiMessageEntityTypes.MentionName) {
|
||||
return ApiMessageEntityTypes.MentionName;
|
||||
}
|
||||
if (anchor.dataset.entityType === ApiMessageEntityTypes.Url) {
|
||||
return ApiMessageEntityTypes.Url;
|
||||
}
|
||||
if (anchor.href.startsWith('mailto:')) {
|
||||
return ApiMessageEntityTypes.Email;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user