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: {