microsoft / microsoft/monaco-editor
[Feature Request] Access to `registerDocumentPasteEditProvider`
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 46.8k
- Forks
- 4.1k
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 1
Description
Context
- This issue is not a bug report. (please use a different template for reporting a bug)
- This issue is not a duplicate of an existing issue. (please use the search to find existing issues)
Description
It is not possible to paste files (needs hacks or elevated rights to navigator.clipboard): https://github.com/microsoft/monaco-editor/issues/4708#issuecomment-2440708212 - because the paste handler(s) will convert the file to a file name paste / "text/uri-list"
So, access to registerDocumentPasteEditProvider (and registerDocumentDropEditProvider) would be nice.
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the related discussion in issue 4708 and locating Monaco's existing paste and drop handling. Trace how document paste and drop edit providers are represented, then determine the public API surface and validation needed for exposing them. Done means the requested provider access is available without the browser clipboard hacks described here.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100