From f1fa775531fc9d31c8cd1ec17d12eb7a7e4f2e98 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 22 Jul 2024 14:59:27 +0800 Subject: [PATCH] fix --- src/components/editor.js | 2 +- src/pages/column/add/index.vue | 404 ++++++++++++---------------- src/pages/column/page/contactUs.vue | 4 +- 3 files changed, 169 insertions(+), 241 deletions(-) diff --git a/src/components/editor.js b/src/components/editor.js index 8e7cf48..86f1fec 100644 --- a/src/components/editor.js +++ b/src/components/editor.js @@ -371,7 +371,7 @@ export default { editor.on('init', function (ed) { // 设置默认字体(新增才需要设置) if (editor.iframeElement.contentWindow.document.body.innerText === '\n') { - ed.target.editorCommands.execCommand("fontName", false, "Microsoft Yahei") + ed.target.editorCommands.execCommand("fontName", false, "Harmony") ed.target.editorCommands.execCommand("fontSize", false, "19px") ed.target.editorCommands.execCommand("lineHeight", false, "1.5") } diff --git a/src/pages/column/add/index.vue b/src/pages/column/add/index.vue index 9d37ed5..613986c 100644 --- a/src/pages/column/add/index.vue +++ b/src/pages/column/add/index.vue @@ -1,136 +1,81 @@