Skip to content

Commit

Permalink
fix: Pass classes to editor element (#64)
Browse files Browse the repository at this point in the history
* fix: Pass classes to editor element

* Rename classes to className or consistency

---------

Co-authored-by: Sibiraj <[email protected]>
  • Loading branch information
knd775 and sibiraj-s authored Dec 1, 2024
1 parent b582a80 commit 902ed66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/EditorContent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -49,7 +49,7 @@
});
</script>

<div bind:this={element}></div>
<div bind:this={element} class={className}></div>

{#if children}
{@render children()}
Expand Down

0 comments on commit 902ed66

Please sign in to comment.