Skip to content
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion desktop/src/features/forum/ui/ForumComposer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ export function ForumComposer({
className="rich-text-composer max-h-32 overflow-y-auto"
onKeyDown={handleEditorKeyDown}
>
<EditorContent editor={richText.editor} />
{richText.editor && <EditorContent editor={richText.editor} />}
</div>

<MessageComposerToolbar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function ForumComposerCompactLayout({
className="rich-text-composer max-h-10 min-w-0 flex-1 overflow-y-auto"
onKeyDown={onEditorKeyDown}
>
<EditorContent editor={editor} />
{editor && <EditorContent editor={editor} />}
</div>
<Button
aria-label={isSending ? "Sending" : "Send message"}
Expand Down
1 change: 1 addition & 0 deletions desktop/src/features/messages/lib/useRichTextEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export function useRichTextEditor({

const editor = useEditor(
{
immediatelyRender: true,
extensions: [
StarterKit.configure({
// Use hard breaks (Shift+Enter) — Enter submits the message.
Expand Down
2 changes: 1 addition & 1 deletion desktop/src/features/messages/ui/MessageComposer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ export function MessageComposer({
ref={composerScrollRef}
onKeyDown={handleEditorKeyDown}
>
<EditorContent editor={richText.editor} />
{richText.editor && <EditorContent editor={richText.editor} />}
</div>

<MessageComposerToolbar
Expand Down
Loading
Loading