问题描述
我尝试将字体系列添加到 ngx-quill 的字体选择器中。起初我尝试加载默认字体列表。然而我得到的只是一个带有 4 行无衬线的默认下拉
app.component.html
<h1>quill-editor</h1>
<quill-editor #quill [styles]="{minHeight: '100px'}" [modules]="editorModules"
[(ngModel)]="letterText">
</quill-editor>
app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',templateUrl: './app.component.html',styleUrls: ['./app.component.css']
})
export class AppComponent {
public editorModules = {
toolbar: [
['bold','italic','underline','strike'],[{ header: 1 },{ header: 2 }],[{ font: ['Arial','Arial Black','Calibri','Futura'] }],]
};
letterText = 'The brown fox jumped over';
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)