我正在使用ngx-editor为我的 MEAN 堆栈应用程序创建所见即所得的编辑器。一切正常,但我想为这个编辑器设置高度。我试图在 css 文件中为组件设置高度,例如
.ngx-editor[_ngcontent-c4] .ngx-editor-textarea[_ngcontent-c4] {
height: 300px !important;
}
但它仍然无法正常工作。
即使我尝试像这样从 component.html 文件中设置高度
<div class="form-group">
<label for="desc">Description</label>
<app-ngx-editor style="height: 300px" [style]="{'min-height':'320px'}" formControlName="desc" [placeholder]="'Enter text here...'" [spellcheck]="true" [(ngModel)]="htmlContent"></app-ngx-editor>
</div>
但它仍然无法正常工作。
有人可以告诉我如何设置编辑器的高度吗?我已经浏览了它的文档,但到目前为止没有得到任何帮助。那么有人可以告诉我如何设置它的高度吗?任何帮助和建议都将非常可观