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的高度和宽度,但未设置。)
(请帮忙,谢谢)
1.4m articles
1.4m replys
5 comments
57.0k users