问题遇到的现象和发生背景
使用npm install --save ckeditor4-vue下载ckeditor组件后,默认的字体为英文字体,怎么添加其他字体
问题相关代码,请勿粘贴截图
data () {
return {
editorData: '',
editorUrl: 'https://cdn.ckeditor.com/4.16.0/full/ckeditor.js',
editorConfig: {
toolbar: 'Full',
startupFocus: true,
// The configuration of the editor.
toolbar_Full: [
{ name: 'clipboard', items: [ 'Undo', 'Redo' ] },
{ name: 'links', items: [ 'Link', 'Unlink' ] },
{ name: 'align', items: ['JustifyLeft', 'JustifyCenter', 'JustifyRight'] },
{ name: 'basicstyles', items: [ 'Bold', 'Italic', 'Underline' ] },
{ name: 'styles', items: ['Font', 'FontSize'] }, // 格式 字体 大小
{ name: 'colors', items: ['TextColor', 'BGColor'] },
'/'
],
extraPlugins: 'justify,font,colorbutton',
resize_enabled: false
},