根據(jù)官網(wǎng)文檔,傳入配置參數(shù)font:toolbar: [ ['bold', 'italic', 'underline', 'strike'], ['blockquote', 'code-block'], [{ 'header': 1 }, { 'header': 2 }], [{ 'list': 'ordered'}, { 'list': 'bullet' }], [{ 'script': 'sub'}, { 'script': 'super' }], [{ 'indent': '-1'}, { 'indent': '+1' }], [{ 'direction': 'rtl' }], [{ 'size': ['small', false, 'large', 'huge'] }], [{ 'header': [1, 2, 3, 4, 5, 6, false] }], [{ 'color': [] }, { 'background': [] }], [{ 'font': ['宋體','黑體'] }],//這里是傳入的字體配置 [{ 'align': [] }], ['clean'], ['link', 'image', 'video'] ]結(jié)果出現(xiàn)奇怪的現(xiàn)象:字體選項(xiàng)的數(shù)量和傳入的font的length一致,但是名字不變....
quill-editor如何更改字體配置?
開心每一天1111
2019-02-13 18:18:36