Questions tagged [ngx-codemirror]
7 questions
4
votes
2 answers
ngx-Codemirror cursor is not working correctly-Angular 8
I have implemented ngX-CodeMirror in my angular project. I have added the code editor inside an angular material modal. It works fine I'm not able to move the cursor so that I can click on any text. I am able to click on some text but not where we…

Amrutha Jaya Raj
- 612
- 2
- 10
- 32
3
votes
1 answer
CodeMirror Line-Break doesn't add line number - Angular
I'm using code mirror from ngx-codemirror. I want to split the line when it fits to the width of the parent. I have found some solutions to split the like using,
lineWrapping: true
and in styles
.CodeMirror-wrap pre {
word-break:…

Amrutha Jaya Raj
- 612
- 2
- 10
- 32
0
votes
0 answers
ngx-codemirror sql foldgutter not working
Trying to use foldgutter for sql queries in codemirror editor.
Below is the demo where it is not working.
Can anyone please suggest some solution.
Thanks
Stackblitz Demo

Pooja Bansal
- 159
- 1
- 9
0
votes
1 answer
How to implement linting feature in code-mirror for a custom mode
I have used ngx-codemirror and set mode to rego. Highlighting is working correctly. How should i implement lint feature for this mode.
0
votes
0 answers
How to render an object containing functions in code mirror (angular) properly
I need to render in code mirror ( a plugin to display code snippets in the frontend ) an object containing functions, my object looks like:
{
lang:"en",
func1: function(e){
console.log(e);
},
func2: function(f){
…

Victor Navarro
- 15
- 1
- 5
0
votes
1 answer
Call SQL linter's API from Codemirror with Typescript
I am trying to call an API to lint a SQL query written in Codemirror (actually I use Angular and the wrapper ngx-codemirror)
Unfortunately, I could not call the API because this is considered undefined:
data-analyzer.component.html:81 ERROR…

Pierre
- 1,044
- 15
- 27
0
votes
1 answer
ngx-codemirror displaying only after click in formarray
I am using @ctrl/ngx-codemirror to input javascript code which is in a form array. But the values in the codemirror is displaying only after i click in the editor. I am aware that we're supposed to refresh the editor but this refreshes and displays…

dev_101
- 321
- 4
- 14