|
@@ -110,6 +110,10 @@ export default {
|
|
|
type: String,
|
|
type: String,
|
|
|
default: 'Arial',
|
|
default: 'Arial',
|
|
|
},
|
|
},
|
|
|
|
|
+ fontColor: {
|
|
|
|
|
+ type: String,
|
|
|
|
|
+ default: '#000000',
|
|
|
|
|
+ },
|
|
|
isHasSpace: {
|
|
isHasSpace: {
|
|
|
type: Boolean,
|
|
type: Boolean,
|
|
|
default: false,
|
|
default: false,
|
|
@@ -205,6 +209,7 @@ export default {
|
|
|
editor.on('init', () => {
|
|
editor.on('init', () => {
|
|
|
editor.getBody().style.fontSize = this.init.font_size; // 设置默认字体大小
|
|
editor.getBody().style.fontSize = this.init.font_size; // 设置默认字体大小
|
|
|
editor.getBody().style.fontFamily = this.init.font_family; // 设置默认字体
|
|
editor.getBody().style.fontFamily = this.init.font_family; // 设置默认字体
|
|
|
|
|
+ editor.getBody().style.color = this.fontColor; // 设置默认字体颜色
|
|
|
|
|
|
|
|
this.init.paragraphheight_formats.forEach((config) => {
|
|
this.init.paragraphheight_formats.forEach((config) => {
|
|
|
const formatName = `paragraphSpacing${config}_em`;
|
|
const formatName = `paragraphSpacing${config}_em`;
|