editor...

This commit is contained in:
Untone 2024-07-22 09:29:57 +03:00
parent 751157b421
commit 85e0a92b31

View File

@ -11,7 +11,7 @@ import { Paragraph } from '@tiptap/extension-paragraph'
import { Placeholder } from '@tiptap/extension-placeholder'
import { Text } from '@tiptap/extension-text'
import { clsx } from 'clsx'
import { Show, createEffect, createMemo, createSignal, onCleanup, onMount } from 'solid-js'
import { Show, Suspense, createEffect, createMemo, createSignal, onCleanup, onMount } from 'solid-js'
import { Portal } from 'solid-js/web'
import {
createEditorTransaction,
@ -261,6 +261,7 @@ const SimplifiedEditor = (props: Props) => {
return (
<ShowOnlyOnClient>
<Suspense>
<div
ref={(el) => (wrapperEditorElRef = el)}
class={clsx(styles.SimplifiedEditor, {
@ -390,6 +391,7 @@ const SimplifiedEditor = (props: Props) => {
/>
</Show>
</div>
</Suspense>
</ShowOnlyOnClient>
)
}