Feat: Integrate codemirror-toolbar with markdownItems into e_app_codemirror_v5.svelte for basic rich text editing.

This commit is contained in:
Scott Idem
2025-11-13 15:44:05 -05:00
parent 81e4d83c2d
commit 2f83aefd22

View File

@@ -44,6 +44,8 @@ import { markdown, markdownLanguage } from '@codemirror/lang-markdown';
// import { html } from '@codemirror/lang-html';
import { oneDark } from "@codemirror/theme-one-dark";
import toolbar, { markdownItems } from 'codemirror-toolbar';
// Props
export let content: string = 'test test test test';
export let new_content: string = '';
@@ -161,6 +163,9 @@ $: editor_extensions = [
// css(),
// html(),
theme,
toolbar({
items: markdownItems,
}),
...extensions
];