From 902ed6683b83811c9cbfe8aee9fbeff6429353c2 Mon Sep 17 00:00:00 2001 From: Ben Ayles <1235055+knd775@users.noreply.github.com> Date: Sun, 1 Dec 2024 05:08:24 -0500 Subject: [PATCH] fix: Pass classes to editor element (#64) * fix: Pass classes to editor element * Rename classes to className or consistency --------- Co-authored-by: Sibiraj <20282546+sibiraj-s@users.noreply.github.com> --- src/lib/EditorContent.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/EditorContent.svelte b/src/lib/EditorContent.svelte index cc805a3..dbc0b48 100644 --- a/src/lib/EditorContent.svelte +++ b/src/lib/EditorContent.svelte @@ -4,7 +4,7 @@ type Props = ComponentInputProps<{}>; - const { editor, children }: Props = $props(); + const { editor, children, class: className }: Props = $props(); let element: HTMLElement; const init = async () => { @@ -49,7 +49,7 @@ }); -
+
{#if children} {@render children()}