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:
@@ -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 {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user