Embedded
嵌入部分仅用于嵌入的文档类型(请参阅配置部分以了解如何定义嵌入的文档类型)。它允许更改定义嵌入模式中按钮行为的设置。
参数
| 参数名称 | 描述 | 类型 | 样例 |
|---|---|---|---|
| embedUrl | 定义作为嵌入到网页中的文档的源文件的文档的绝对URL。 | string | "https://example.com/embedded?doc=exampledocument1.docx" |
| fullscreenUrl | 定义将以全屏模式打开的文档的绝对URL。 | string | "https://example.com/embedded?doc=exampledocument1.docx#fullscreen" |
| saveUrl | 定义允许将文档保存到用户个人计算机上的绝对URL。 | string | "https://example.com/download?doc=exampledocument1.docx" |
| shareUrl | 定义允许其他用户共享此文档的绝对URL。 | string | "https://example.com/view?doc=exampledocument1.docx" |
| toolbarDocked | 定义嵌入式查看器工具栏的位置,可以是ToporBottom。 | string | "top" |
样例
var docEditor = new KlinDocsAPI.DocEditor("placeholder", {
"editorConfig": {
"embedded": {
"embedUrl": "https://example.com/embedded?doc=exampledocument1.docx",
"fullscreenUrl": "https://example.com/embedded?doc=exampledocument1.docx#fullscreen",
"saveUrl": "https://example.com/download?doc=exampledocument1.docx",
"shareUrl": "https://example.com/view?doc=exampledocument1.docx",
"toolbarDocked": "top"
},
...
},
...
});