fix cursor behaviour around pills
This commit is contained in:
parent
9c0c806af4
commit
c91dcffe82
2 changed files with 43 additions and 9 deletions
|
@ -64,11 +64,11 @@ class PlainWithPillsSerializer {
|
|||
} else if (node.type == 'pill') {
|
||||
switch (this.pillFormat) {
|
||||
case 'plain':
|
||||
return node.text;
|
||||
return node.data.get('completion');
|
||||
case 'md':
|
||||
return `[${ node.text }](${ node.data.get('url') })`;
|
||||
case 'id':
|
||||
return node.data.completionId || node.text;
|
||||
return node.data.get('completionId') || node.data.get('completion');
|
||||
}
|
||||
}
|
||||
else if (node.nodes) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue