Comments (4)
editor.getValue()
Though do note that the scope of the editor variable above will not work. So declare var editor before the require and assign it in the require callback function.
Alternatively: monaco.editor.getModels()[0].getValue()
from monaco-editor.
I see...
I was trying things off the monaco.editor object, it makes sense that'd it be on the editor instance that was created.
Thanks for clearing that up.
from monaco-editor.
Is that the best way to get the array of lines?
from monaco-editor.
@stoplion No, that would be model.getLinesContent()
from monaco-editor.
Related Issues (20)
- [Bug] `Toggle Tab Key Moves Focus` missing from Command Palette
- [Bug] wordWrap: "off" not working for lines containing >~10k characters
- [Bug] No syntax highlighting for JSDoc any longer
- [Bug] Keyevents fired twice on new editor after disposing diff editor on same domElement (parent)
- [Bug] Regression in 0.45.0 - Command Palette does not work if Monaco is wrapped in Angular HOT 13
- [Feature Request]
- [Feature Request] Rounded scroll bar
- [Feature Request] Get the value at position with specific delimiters
- [Bug] Platform is not always well detected HOT 4
- [Bug] In Firefox on Mac, releasing the mouse button outside of monaco (after selecting text via mousedown+drag) leads to a click event HOT 4
- [Bug] vscode-dark - typescript function calls and varaibles are colored differently (and have no tokens)
- [Bug] Inline Completion causes inability to type "[" on italian keyboard
- [Bug] Syntax Highlighting Issue with Regex Containing Backtick in JavaScript
- [Bug] Monaco Playground w/ Local Dev Environment Does Not Work
- [Bug] Duplicate module load issue: 'error-stack-parser' when Monaco is combined with Pyodide under AMD loading HOT 1
- [Bug] Since 0.46.0, dropped text append "$0" HOT 1
- [Bug] CtrlCmd not working on mac os, but WinCtrl is HOT 4
- [Feature Request] Standalone Monarch build
- [Bug] Uncaught (in promise) Canceled: Canceled error thrown when paste continuously holding "Command + V" keys
- [Bug] debugger; statement in diffAlgorithm.ts HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monaco-editor.