Skip to content

Commit

Permalink
Set contenteditable earlier in mentions blot
Browse files Browse the repository at this point in the history
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
  • Loading branch information
automated-signal and indutny-signal committed Sep 1, 2021
1 parent aa52129 commit 3e3ad53
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ts/quill/mentions/blot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand All @@ -63,10 +64,4 @@ export class MentionBlot extends Embed {

node.appendChild(mentionSpan);
}

constructor(node: Node) {
super(node);

this.contentNode.setAttribute('contenteditable', 'false');
}
}

0 comments on commit 3e3ad53

Please sign in to comment.