Set contenteditable
earlier in mentions blot
This commit is contained in:
parent
15cad32862
commit
0cb340fd1e
1 changed files with 1 additions and 6 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue