Swap the plain <textarea> for a minimal Tiptap (ProseMirror) editor with IME-safe Enter-to-submit, Shift+Enter newline, placeholder support, and an optional imperative ref (getText/setText/focus/clear). All rich-text extensions are disabled — only plain text is allowed. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 lines
384 B
CSS
18 lines
384 B
CSS
.chat-input-editor .ProseMirror {
|
|
outline: none;
|
|
min-height: 2.5rem;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.chat-input-editor .ProseMirror p.is-editor-empty:first-child::before {
|
|
content: attr(data-placeholder);
|
|
float: left;
|
|
pointer-events: none;
|
|
height: 0;
|
|
color: var(--muted-foreground);
|
|
}
|
|
|
|
.chat-input-editor.is-disabled .ProseMirror {
|
|
cursor: not-allowed;
|
|
}
|