Below is my example
(下面是我的例子)
https://stackblitz.com/edit/ngx-codemirror-g9orbw?file=src/app/app.component.css
(https://stackblitz.com/edit/ngx-codemirror-g9orbw?file=src/app/app.component.css)
p { font-family: Lato; } .container { width: 500px; height: 50px; } <div class="container"> <ngx-codemirror #codemirror [options]="codeMirrorOptions" [(ngModel)]="obj" (ngModelChange)="setEditorContent($event)"> </ngx-codemirror> </div>
I need to set height and width of codemirror, but its not setting.
(我需要设置codemirror的高度和宽度,但未设置。)
(请帮忙,谢谢)
2.1m questions
2.1m answers
60 comments
57.0k users