Microsoft recently open sourced their monaco editor (similar to ace/codemirror).  https://github.com/Microsoft/monaco-editor  I've got it up and running in the browser, but still can't figure out how to get the current text of the editor, lik...
I am using monaco-editor, and am trying to add a custom handler for Command+Enter. But when I press the command key, the Monaco context menu shows up. Is it possible to disable the context menu, or to rebind it to another key?...
I am trying to use the react-monaco-editor npm package component to import the monaco editor into my react application.  These are the version of the packages I downloaded from npm:  "react-monaco-editor": "^0.13.0", "@types/react...
I am working with monaco editor aka the VS Code engine in a web project.  I am using it to allow users to edit some JSON that has a JSON Schema set, to help give some auto-completion.  When they save their changes and wish to re-edit their work, the...
I'm trying to configure the Monaco Editor in a way that certain regions of the textcontent are readonly. More precise, I want the first and last line to be readonly. Example below:  public something(someArgument) { // This is readonly // This is...
I would like to set the indentation width (in spaces) in an instance of the monaco editor.   So far, I've been able to customize many options by passing in any of the IEditorOptions during initialization. These options can also be customized late...
I am using the monaco editor in a project to help a user specify some templating.      require.config({ paths: { 'vs': 'https://unpkg.com/[email protected]/min/vs' }});  window.MonacoEnvironment = { getWorkerUrl: () => proxy };...
I want to create a system to store the Undo&Redo stack of the Monaco editor.   Why?: I have a Monaco instance where I do several changes. Then I have to dispose that instance and open a new one. Here, I want to restore the same stack state that I...
I can define tokens with setMonarchTokensProvider, but that does not really help because I can only make a new language or overwrite typescript. In either case I do not have the rest of the typescript tokens which I still want to have.  I just want t...
I have been working through using the browser based version of the Microsoft Monaco Editor, I can't find any documentation or any examples in the playground that tell you how to get the value of a specific line of in the editor.   For example:  c...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.