diff --git a/src/components/Editor/Editor.tsx b/src/components/Editor/Editor.tsx index 1d4dd8d4..5696fd0f 100644 --- a/src/components/Editor/Editor.tsx +++ b/src/components/Editor/Editor.tsx @@ -1,3 +1,4 @@ +import { createEffect } from 'solid-js' import { createTiptapEditor, useEditorHTML } from 'solid-tiptap' import { clsx } from 'clsx' import { useLocalize } from '../../context/localize' diff --git a/src/components/Editor/EditorBubbleMenu.tsx b/src/components/Editor/EditorBubbleMenu.tsx index cdc85bfa..80cb3be8 100644 --- a/src/components/Editor/EditorBubbleMenu.tsx +++ b/src/components/Editor/EditorBubbleMenu.tsx @@ -105,7 +105,7 @@ export const EditorBubbleMenu = (props: BubbleMenuProps) => { type="text" placeholder={t('Enter URL address')} autofocus - value={prevUrl() ? prevUrl() : null} + value={prevUrl() ?? null} onChange={(e) => setUrl(e.currentTarget.value)} />