Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

Commit 2b04cbf

Browse files
committed
also crawl back to tiptap mention extension
1 parent 50178a8 commit 2b04cbf

14 files changed

Lines changed: 575 additions & 838 deletions

File tree

apps/array/src/renderer/features/message-editor/components/MessageEditor.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { useDraftStore } from "../stores/draftStore";
88
import { useTiptapEditor } from "../tiptap/useTiptapEditor";
99
import type { EditorHandle } from "../types";
1010
import { EditorToolbar } from "./EditorToolbar";
11-
import { SuggestionPopup } from "./SuggestionPopup";
1211

1312
export type { EditorHandle as MessageEditorHandle };
1413
export type { EditorContentType as EditorContent };
@@ -102,8 +101,6 @@ export const MessageEditor = forwardRef<EditorHandle, MessageEditorProps>(
102101
<EditorContent editor={editor} />
103102
</div>
104103

105-
<SuggestionPopup sessionId={sessionId} />
106-
107104
<Flex justify="between" align="center">
108105
<Flex gap="2" align="center">
109106
<EditorToolbar

apps/array/src/renderer/features/message-editor/components/SuggestionPopup.tsx

Lines changed: 0 additions & 218 deletions
This file was deleted.

apps/array/src/renderer/features/message-editor/components/message-editor.css

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
/* Placeholder for empty contenteditable - requires pseudo-element */
2-
.cli-editor:empty::before {
1+
/* Tiptap placeholder - targets empty first paragraph */
2+
.cli-editor p.is-editor-empty:first-child::before {
33
content: attr(data-placeholder);
44
color: var(--gray-11);
55
pointer-events: none;
6-
}
7-
8-
.cli-editor:focus:not(:empty)::before {
9-
content: "";
6+
float: left;
7+
height: 0;
108
}
119

1210
/* Mention chips - base styles for selection behavior */

0 commit comments

Comments
 (0)