我使用ngx-quill编辑器时遇到了一个空格问题。编辑文本时出现问题。我尝试将先前生成的html插入到编辑器中,但浪费了白色字符。
<quill-editor #editor [modules]="modules" formControlName="description" [style]="{height: '200px'}"></quill-editor>我试着改写样式:
quill-editor {
display: block;
white-space: pre-wrap;
}将其添加到样式中时,编辑器在工具栏enter image description here上有额外的空间
我看到类ql-editor有预包装的空格,但对我不起作用。感谢您的回复
发布于 2019-03-05 18:25:35
尝试一下,将这个添加到css,然后它会将空白替换为.
:host /deep/ .ql-editor {
white-space: normal!important;
}或
.ql-editor {
white-space: normal!important;
}https://stackoverflow.com/questions/53069854
复制相似问题