You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys, I'm slightly stuck with a problem. I want to insert a value at the cursor position, but it's very difficult for me in ngx-monaco-editor-v2. I've searched a lot, but I haven't found any documentation regarding this in ngx-monaco-editor-v2.
Can you pls help me to find the cursor Position and How to Insert the value
HTML
<ngx-monaco-editor [options]="editorOptions" [(ngModel)]="code">
Hi guys, I'm slightly stuck with a problem. I want to insert a value at the cursor position, but it's very difficult for me in ngx-monaco-editor-v2. I've searched a lot, but I haven't found any documentation regarding this in ngx-monaco-editor-v2.
Can you pls help me to find the cursor Position and How to Insert the value
HTML
<ngx-monaco-editor [options]="editorOptions" [(ngModel)]="code">
Ts file
import { Component } from '@angular/core';
@component({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent {
editorOptions = {theme: 'vs-dark', language: 'javascript'};
code: string= 'function x() {\nconsole.log("Hello world!");\n}';
}
The text was updated successfully, but these errors were encountered: