添加AI摘要
parent
82fd803e6d
commit
c9a304e080
|
|
@ -512,6 +512,18 @@
|
|||
.markdown-editor-container .w-md-editor-text {
|
||||
font-size: 0.9rem !important;
|
||||
line-height: 1.6 !important;
|
||||
caret-color: #667eea !important;
|
||||
}
|
||||
|
||||
.markdown-editor-container .w-md-editor-text-input {
|
||||
resize: none !important;
|
||||
}
|
||||
|
||||
.markdown-editor-container .w-md-editor-text-textarea {
|
||||
resize: none !important;
|
||||
outline: none !important;
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.markdown-editor-container .w-md-editor-toolbar {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import React, { useState, useEffect, useRef } from 'react';
|
||||
import React, { useState, useEffect, useRef, useCallback } from 'react';
|
||||
import { Link, useNavigate, useParams } from 'react-router-dom';
|
||||
import axios from 'axios';
|
||||
import { ArrowLeft, Users, Calendar, FileText, X, User, Save, Upload, Plus, Image } from 'lucide-react';
|
||||
|
|
@ -30,6 +30,10 @@ const EditMeeting = ({ user }) => {
|
|||
const [meeting, setMeeting] = useState(null);
|
||||
const [showUploadArea, setShowUploadArea] = useState(false);
|
||||
|
||||
const handleSummaryChange = useCallback((value) => {
|
||||
setFormData(prev => ({ ...prev, summary: value || '' }));
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
fetchMeetingData();
|
||||
fetchUsers();
|
||||
|
|
@ -529,8 +533,9 @@ const EditMeeting = ({ user }) => {
|
|||
</div>
|
||||
<div className="markdown-editor-container">
|
||||
<MDEditor
|
||||
key="summary-editor"
|
||||
value={formData.summary}
|
||||
onChange={(value) => setFormData(prev => ({ ...prev, summary: value || '' }))}
|
||||
onChange={handleSummaryChange}
|
||||
data-color-mode="light"
|
||||
height={400}
|
||||
preview="edit"
|
||||
|
|
@ -539,6 +544,19 @@ const EditMeeting = ({ user }) => {
|
|||
visibleDragBar={false}
|
||||
commands={customCommands}
|
||||
extraCommands={customExtraCommands}
|
||||
autoFocus={false}
|
||||
textareaProps={{
|
||||
placeholder: '在这里编写会议摘要...',
|
||||
style: {
|
||||
fontSize: '14px',
|
||||
lineHeight: '1.5',
|
||||
fontFamily: 'inherit'
|
||||
},
|
||||
spellCheck: false,
|
||||
autoComplete: 'off',
|
||||
autoCapitalize: 'off',
|
||||
autoCorrect: 'off'
|
||||
}}
|
||||
/>
|
||||
<input
|
||||
ref={imageInputRef}
|
||||
|
|
|
|||
Loading…
Reference in New Issue