feat(ckeditor5): create an empty toolbar for code blocks

This commit is contained in:
Elian Doran
2025-05-26 09:17:35 +03:00
parent bab679fd2a
commit a1d5719fe0
2 changed files with 48 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ import "@triliumnext/ckeditor5-mermaid/index.css";
import "@triliumnext/ckeditor5-admonition/index.css";
import "@triliumnext/ckeditor5-footnotes/index.css";
import "@triliumnext/ckeditor5-math/index.css";
import CodeBlockToolbar from "./plugins/code_block_toolbar.js";
/**
* Plugins that are specific to Trilium and not part of the CKEditor 5 core, included in both text editors but not in the attribute editor.
@@ -38,7 +39,8 @@ const TRILIUM_PLUGINS: typeof Plugin[] = [
MarkdownImportPlugin,
IncludeNote,
Uploadfileplugin,
SyntaxHighlighting
SyntaxHighlighting,
CodeBlockToolbar
];
/**