Working on things after the Svelte upgrade. Got the new editor toolbar working again. I think I needed to reinstall the shadcn-svelte packages.

This commit is contained in:
Scott Idem
2024-12-03 11:15:08 -05:00
parent e4797e178d
commit 0032d52ff9
5 changed files with 130 additions and 130 deletions

View File

@@ -26,13 +26,11 @@
interface Props {
editor: Editor;
show_button_kv: any;
show_button_kv?: any;
}
let { editor, show_button_kv }: Props = $props();
let show_button_kv_defaults: any = {
undo: true,
redo: true,
@@ -59,6 +57,7 @@ let show_button_kv_defaults: any = {
quick_color: true,
search_replace: false,
};
console.log('show_button_kv', show_button_kv);
if (show_button_kv) {
show_button_kv = {...show_button_kv_defaults, ...show_button_kv};
} else {

View File

@@ -141,7 +141,7 @@
*/
editor = undefined;
editor = transaction.editor;
console.log(editor.isActive('bold'));
// console.log(editor.isActive('bold'));
content = editor.getHTML();
// console.log(content);
let html = editor.getHTML();