itemRenderer: (item: Awaited<ReturnType<typeof getPossibleMentions>>[0]) => {
// TODO: This is ugly.
return createFragmentFromHtml(`
- <span>${item.icon} ${item.text}</span>
+ <span class="ckeditor5__mention">${item.icon} ${item.text}</span>
`).firstElementChild as HTMLElement;
},
marker: "@",
itemRenderer: (item) => {
// TODO: This is ugly.
return (0, Util_1.createFragmentFromHtml)(`
- <span>${item.icon} ${item.text}</span>
+ <span class="ckeditor5__mention">${item.icon} ${item.text}</span>
`).firstElementChild;
},
marker: "@",
display: none;
}
}
+
+.ck.ck-list__item .ck-button.ckeditor5__mention {
+ display: block;
+}
+.ck.ck-list__item .ck-button.ckeditor5__mention .userAvatarImage {
+ height: 16px;
+ width: 16px;
+}