Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(text_snippets): support color class as well
Elian Doran3f5239706f4e
diff --git a/apps/client/src/widgets/type_widgets/ckeditor/snippets.ts b/apps/client/src/widgets/type_widgets/ckeditor/snippets.tsindex 86dc8b0773..1c282d5bfb 100644--- a/apps/client/src/widgets/type_widgets/ckeditor/snippets.ts+++ b/apps/client/src/widgets/type_widgets/ckeditor/snippets.ts@@ -52,7 +52,7 @@ function buildIcon(snippet: FNote) {return /*xml*/`\<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><foreignObject x="0" y="0" width="20" height="20">- <span class="note-icon ${snippet.getIcon()}" xmlns="http://www.w3.org/1999/xhtml"></span>+ <span class="note-icon ${snippet.getIcon()} ${snippet.getColorClass()}" xmlns="http://www.w3.org/1999/xhtml"></span></foreignObject></svg>`}