我正在使用ngx-editor为我的MEAN堆栈应用程序创建wysiwyg编辑器.一切都很好,但我想为这个编辑器设置高度.我试图在css文件中为组件设置高度
.ngx-editor[_ngcontent-c4] .ngx-editor-textarea[_ngcontent-c4] {
height: 300px !important;
}
Run Code Online (Sandbox Code Playgroud)
但仍然无法正常工作.
甚至我试图像这样从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>
Run Code Online (Sandbox Code Playgroud)
但仍然无法正常工作.
有人能告诉我如何设置编辑器的高度吗?我已经完成了它的文档,但到目前为止还没有得到任何帮助.那么有人可以告诉我如何设置其高度?任何帮助和建议都会非常明显