From 13af71564237f92dc36fd28401aa462289b4e40b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167>
Date: Wed, 13 Sep 2023 14:48:04 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=89=E5=85=A8=E4=BB=A4?=
=?UTF-8?q?=E7=89=8C=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/index.html | 4 ++--
src/views/editor.vue | 19 ++++++++++++++++---
2 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/public/index.html b/public/index.html
index 4ccf1c1..ebcb255 100644
--- a/public/index.html
+++ b/public/index.html
@@ -8,14 +8,14 @@
<%= htmlWebpackPlugin.options.title %>
-
+
<% if (process.env.NODE_ENV === 'development' ) { %>
<% } %>
diff --git a/src/views/editor.vue b/src/views/editor.vue
index 4fc24b3..f9630d6 100644
--- a/src/views/editor.vue
+++ b/src/views/editor.vue
@@ -32,6 +32,7 @@ export default {
if (console && console.log) console.log(message)
},
onAppReady () {
+ console.log(123);
this.innerAlert('Document editor ready')
},
onDocumentStateChange (event) {
@@ -59,6 +60,7 @@ export default {
})
},
onRequestHistoryData (data) {
+ console.log(data);
const version = data.data
const historyData =
[
@@ -74,6 +76,7 @@ export default {
document.location.reload()
},
onError (event) {
+ console.log(event);
if (event) this.innerAlert(event.data)
},
onOutdatedVersion (event) {
@@ -129,8 +132,8 @@ export default {
// text对应各种文档类型(.doc, .docm, .docx, .dot, .dotm, .dotx, .epub, .fodt, .htm, .html, .mht, .odt, .ott, .pdf, .rtf, .txt, .djvu, .xps)
// spreadsheet对应表格类型(.csv, .fods, .ods, .ots, .xls, .xlsm, .xlsx, .xlt, .xltm, .xltx)
// presentation对应PPT类型(.fodp, .odp, .otp, .pot, .potm, .potx, .pps, .ppsm, .ppsx, .ppt, .pptm, .pptx)
- documentType: 'text',
- token: '',
+ documentType: 'word',
+ token: 'secret',
document: {
// title: this.$route.query.oldFileName + '.' + this.$route.query.fileType,
title: '文档.docx',
@@ -149,7 +152,17 @@ export default {
fillForms: true, // 定义是否能在文档中填充表单
modifyFilter: true, // 定义过滤器是否可以全局应用(true)影响所有其他用户,或局部应用(false),即仅适用于当前用户。如果将mode参数设置为edit,则过滤器修改仅对电子表格编辑器可用。默认值为true。
modifyContentControl: true, // 定义是否可以更改内容控件设置。仅当mode参数设置为edit时,内容控件修改才可用于文档编辑器。默认值为true。
- review: true // 第一是否显示审阅文档菜单
+ review: true, // 第一是否显示审阅文档菜单
+ "commentGroups": {
+ "edit": ["Group2", ""],
+ "remove": [""],
+ "view": ""
+ },
+ "copy": true,
+ "deleteCommentAuthorOnly": false,
+ "editCommentAuthorOnly": false,
+ "print": true,
+ "reviewGroups": ["Group1", "Group2", ""]
}
},
editorConfig: {