使用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
},
fontSize_style : Object
用于在文本中应用字体大小的样式定义。
见源
// This is actually the default value for it.
config.fontSize_style = {
element: 'span',
styles: { 'font-size': '#(size)' },
overrides: [ { element: 'font', attributes: { 'size': null } } ]
};