feat: add upload file button to annotation guide editor toolbar#10341
Open
prathamesh-patil-5090 wants to merge 23 commits intocvat-ai:developfrom
Open
feat: add upload file button to annotation guide editor toolbar#10341prathamesh-patil-5090 wants to merge 23 commits intocvat-ai:developfrom
prathamesh-patil-5090 wants to merge 23 commits intocvat-ai:developfrom
Conversation
Refactor not found components to use a common handleReturn function for navigation.
Remove console log for history length in TaskNotFoundComponent.
Added a new 'Return to Previous Page' button with smart fallback navigation.
Updated link for 'Return to Previous Page' button feature.
Updated the link for the 'Return to Previous Page' button in the changelog.
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem:
The annotation guide editor supported drag-and-drop and clipboard paste for inserting local images, but had no dedicated button to open a file picker dialog. This made image uploads difficult on devices with limited touchpad access.
Solution:
A paperclip icon button is added to the MDEditor toolbar extraCommands. Clicking it opens the OS file selection dialog (supports multiple files). The selected files are uploaded to the server as assets via the existing handleInsertFiles logic — images are embedded as ![image] () and other file types as [filename] ().
Test:
Screencast.from.2026-03-09.01-15-16.webm
Closes #10301 (extracted from #6536).