mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Set contenteditable earlier in mentions blot
This commit is contained in:
@@ -48,6 +48,7 @@ export class MentionBlot extends Embed {
|
||||
static buildSpan(mention: MentionBlotValue, node: HTMLElement): void {
|
||||
node.setAttribute('data-uuid', mention.uuid || '');
|
||||
node.setAttribute('data-title', mention.title || '');
|
||||
node.setAttribute('contenteditable', 'false');
|
||||
|
||||
const mentionSpan = document.createElement('span');
|
||||
|
||||
@@ -63,10 +64,4 @@ export class MentionBlot extends Embed {
|
||||
|
||||
node.appendChild(mentionSpan);
|
||||
}
|
||||
|
||||
constructor(node: Node) {
|
||||
super(node);
|
||||
|
||||
this.contentNode.setAttribute('contenteditable', 'false');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user