Commit c5ab427f authored by 以墨为白's avatar 以墨为白 🎧

onlyoffice demo

parent 679575c6
...@@ -21,5 +21,5 @@ ...@@ -21,5 +21,5 @@
alert("当前浏览器版本过低,请升级!!!"); alert("当前浏览器版本过低,请升级!!!");
} }
</script> </script>
<script src="http://192.168.168.213:9000/web-apps/apps/api/documents/api.js"></script>
</html> </html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div id="placeholder"></div>
<script src="http://192.168.168.213:9000/web-apps/apps/api/documents/api.js"></script>
<script>
var docEditor = new DocsAPI.DocEditor("placeholder", {
document: {
fileType: "xlsx",
// "permissions": {
// "edit": false,
// },
// "key": "C8D7FB890BAC496FB0D27B163EDB88BDAA",
title: "zf张飞.xlsx",
url: "http://192.168.168.110:9006/document/B56CA250-26F0-45E3-8E5A-EB19CC8C94E1.xlsx?Content-Disposition=attachment%3B%20filename%3D%22B56CA250-26F0-45E3-8E5A-EB19CC8C94E1.xlsx%22&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20231125%2F%2Fs3%2Faws4_request&X-Amz-Date=20231125T150951Z&X-Amz-Expires=432000&X-Amz-SignedHeaders=host&X-Amz-Signature=68ad239e4aba910b5c68b409ef84e79be53bfff0ca070d3ba6ca3d203ce7dd2f",
},
height: "1000px",
width: "100%",
editorConfig: {
mode: 'view',
customization: {
//是否显示插件
plugins: false,
},
about: false,
chat: false,
comments: false,
zoom: 100,
compactToolbar: false,
leftMenu: false,
rightMenu: false,
toolbar: false,
header: false,
statusBar: false,
autosave: false,
forcesave: false,
commentAuthorOnly: false,
showReviewChanges: false
}
});
</script>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment