microsoft / microsoft/monaco-editor
[Feature Request] Print monaco editor whole content
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
I try window.print(); to print the whole content of monaco-editor but it print only the first page (visible with scoll page). I have try to remove scroll with:
@media print {
.monaco-editor, .monaco-editor div { /*.editor-scrollable*/
overflow: visible;
}
}
but without success.. Can we write css for @media print and maybe it's better to include it in library?
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
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 reproducing the issue with window.print() in the Monaco editor and inspect the .monaco-editor scroll containers under the provided @media print rules. The work is done when printing includes the editor's whole content across all pages without breaking normal scrolling or screen rendering.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, 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