fix: restore hidden file input for InsertToolbar attachment upload
- Add back hidden file input element removed with Attach button - InsertToolbar still uses file upload functionality - Fixes TypeScript build error TS6133 (unused handleAttachmentUpload) - Attachment upload still available via floating insert toolbar
This commit is contained in:
@@ -768,6 +768,13 @@ export function NoteEditor({ note, onUpdateNote, onUnsavedChanges, categories, i
|
||||
onInsertFile={handleInsertFile}
|
||||
isUploading={isUploading}
|
||||
/>
|
||||
<input
|
||||
ref={fileInputRef}
|
||||
type="file"
|
||||
onChange={handleAttachmentUpload}
|
||||
className="hidden"
|
||||
accept="image/*,.pdf,.doc,.docx,.txt,.md"
|
||||
/>
|
||||
<textarea
|
||||
ref={textareaRef}
|
||||
value={localContent}
|
||||
|
||||
Reference in New Issue
Block a user