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)
- Character input causes line jumps in certain cases
- [Bug] Setting custom link provider doesn't remove the embedded one HOT 1
- How to listen for TypeScriptWorker errors when executing getEmitOutput
- [Question][Feature Request] Add ability to go from standalone editor into a diff editor
- [Bug] Incorrect CSS causes repaint with every caret blink
- [Feature Request] Align `alwaysConsumeMouseWheel` Behavior with Native textarea Scrolling
- [Question][Feature Request] is there any way to add the DAP to the monaco editor
- [Bug] new support for Python f-strings breaks with multi-line f-strings
- [Bug] Chinese input causes the line to jump abnormally
- [Feature Request] Make close icon for the details suggestions view button
- [Feature Request] How to make the autocomplete distinguish between uppercase and lowercase
- [Bug]
- Diff editor - highlight same lines
- [Feature Request]
- [Feature Request] Remove vertical scrollbar and corresponding space
- [Bug] Error: InstantiationService has been disposed
- [Bug] Error: The parameters in nameBuiltin from elixir.js are globally replaced, causing compilation errors. HOT 1
- [Feature Request] monaco-esbuild-plugin
- [Bug] Vite5+electron+monaco, load ts worker exception: Editor.vue:34 Uncaught TypeError: require2 is not a function HOT 1
- Add Touch Selection Support to Monaco Editor HOT 1
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.