microsoft / microsoft/monaco-editor
All editors on a page share the same theme
Open
Nobody has claimed this yet.
editor-core
feature-request
- Dominant language
- JavaScript
- Stars
- 46.8k
- Forks
- 4.1k
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 1
Description
I'm trying to add multi monaco instances on the same page.
However the latter instance will affect previous instances' settings, the theme/tokenizer is always updated to the last instance's settings.
How to separate their individual config?
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
No file or test is named. Start by reproducing the issue with multiple Monaco editor instances and trace how each instance applies its theme and tokenizer settings. Done means changing one instance's configuration no longer affects the others, with coverage for separate configurations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100