microsoft / microsoft/monaco-editor
Editor serialization
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 46.8k
- Forks
- 4.1k
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 1
Description
monaco-editor npm version: 0.6.1
Browser: Electron
OS: Windows 10
Hi, is there any way to serialize the editing session? I want to have the capability to save the code, selection range, cursor, undo manager etc. on the server side.
I've found saveViewState method, but i can't find the way to serialize the editor model.
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, test, or entry point is named. Start by reviewing the editor's saveViewState method and the model and undo-manager APIs, then determine whether the requested editing session can be serialized. Done would mean a supported way to restore the code, selection range, cursor, and undo state on the server side.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100