我使用 ngx-quill 并尝试将新编辑器的默认格式设置为粗体
onEditorCreated(quill) {
quill.format('color', 'red');
quill.format('align', 'right');
}
然而,这些工作
onEditorCreated(quill) {
quill.format('bold');
quill.format('bold', 'bold');
quill.format('format', 'bold');
quill.format('inline', 'bold');
);
}
这些不。